#2F2896#2F2896

#2F2896 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.7% C 0.171 H 276.6°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#2F2896
RGBrgb(47, 40, 150)
HSLhsl(244, 58%, 37%)
HSVhsv(244, 73%, 59%)
CMYKcmyk(68.7%, 73.3%, 0%, 41.2%)
CIE-LABlab(24.71, 38.35, -58.91)
CIE-LCHlch(24.71, 70.29, 303.06°)
OKLaboklab(36.74% 0.0198 -0.1702)
OKLCHoklch(36.74% 0.171 276.6)
XYZxyz(7.4343, 4.3233, 29.2909)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2896 #8F9628
analogous
#285896 #2F2896 #662896
triadic
#2F2896 #962F28 #28962F
tetradic
#2F2896 #962858 #8F9628 #289666
square
#2F2896 #962858 #8F9628 #289666
split-complementary
#2F2896 #966628 #589628
monochromatic
#110E35 #201B66 #2F2896 #3E35C6 #6A63D5

Accessibility & contrast

On white

11.26
#2F2896 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2F2896 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2896
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2896#FFFFFF#000000##FFFFFF
##2F28961.0011.261.8611.26
#FFFFFF11.261.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F99
Deuteranopia (green-blind)
#003694
Tritanopia (blue-blind)
#00475C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f2896;
/* rgb */ color: rgb(47, 40, 150);
/* oklch */ color: oklch(36.7% 0.171 276.6);
Tailwind
colors: {
  custom: {
    50: '#7663b6',
    500: '#2f2896',
    950: '#000000',
  },
}
SCSS
$custom: #2f2896;
$custom-light: #7663b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2896",
  "rgb": {
    "r": 47,
    "g": 40,
    "b": 150
  },
  "hsl": {
    "h": 243.818,
    "s": 57.895,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36738,
    "c": 0.17135,
    "h": 276.6
  },
  "luminance": 0.04324
}

Semantic roles & 50–950 ramp

primary
#2F2896
secondary
#B5BB5F
accent
#E147D7
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #2F2896

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#2F2896 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva