#2F1B9E#2F1B9E

#2F1B9E is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.9% C 0.193 H 277.3°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#2F1B9E
RGBrgb(47, 27, 158)
HSLhsl(249, 71%, 36%)
HSVhsv(249, 83%, 62%)
CMYKcmyk(70.3%, 82.9%, 0%, 38%)
CIE-LABlab(23.19, 47.74, -66.34)
CIE-LCHlch(23.19, 81.73, 305.74°)
OKLaboklab(35.93% 0.0247 -0.1917)
OKLCHoklch(35.93% 0.193 277.3)
XYZxyz(7.7338, 3.8561, 32.6779)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1B9E #8A9E1B
analogous
#1B499E #2F1B9E #711B9E
triadic
#2F1B9E #9E2F1B #1B9E2F
tetradic
#2F1B9E #9E1B49 #8A9E1B #1B9E71
square
#2F1B9E #9E1B49 #8A9E1B #1B9E71
split-complementary
#2F1B9E #9E711B #499E1B
monochromatic
#100935 #1F126A #2F1B9E #3F24D2 #6852E1

Accessibility & contrast

On white

11.86
#2F1B9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2F1B9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1B9E
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1B9E#FFFFFF#000000##FFFFFF
##2F1B9E1.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA2
Deuteranopia (green-blind)
#00329C
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f1b9e;
/* rgb */ color: rgb(47, 27, 158);
/* oklch */ color: oklch(35.9% 0.193 277.3);
Tailwind
colors: {
  custom: {
    50: '#795cbc',
    500: '#2f1b9e',
    950: '#000000',
  },
}
SCSS
$custom: #2f1b9e;
$custom-light: #795cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1b9e",
  "rgb": {
    "r": 47,
    "g": 27,
    "b": 158
  },
  "hsl": {
    "h": 249.16,
    "s": 70.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35927,
    "c": 0.19324,
    "h": 277.3
  },
  "luminance": 0.03857
}

Semantic roles & 50–950 ramp

primary
#2F1B9E
secondary
#B3C451
accent
#EE3AD2
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2F1B9E

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

Preview Lab → · Contrast checker → · Palette generator →

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