#2F1D8B#2F1D8B

#2F1D8B is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.0% C 0.169 H 280.0°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#2F1D8B
RGBrgb(47, 29, 139)
HSLhsl(250, 65%, 33%)
HSVhsv(250, 79%, 55%)
CMYKcmyk(66.2%, 79.1%, 0%, 45.5%)
CIE-LABlab(21.38, 40.90, -57.58)
CIE-LCHlch(21.38, 70.63, 305.39°)
OKLaboklab(34.04% 0.0293 -0.1662)
OKLCHoklch(34.04% 0.169 280)
XYZxyz(6.2704, 3.3467, 24.7366)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1D8B #798B1D
analogous
#1D428B #2F1D8B #661D8B
triadic
#2F1D8B #8B2F1D #1D8B2F
tetradic
#2F1D8B #8B1D42 #798B1D #1D8B66
square
#2F1D8B #8B1D42 #798B1D #1D8B66
split-complementary
#2F1D8B #8B661D #428B1D
monochromatic
#0D0826 #1E1258 #2F1D8B #4028BE #6149D9

Accessibility & contrast

On white

12.58
#2F1D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2F1D8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1D8B
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1D8B#FFFFFF#000000##FFFFFF
##2F1D8B1.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378E
Deuteranopia (green-blind)
#002F89
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2f1d8b;
/* rgb */ color: rgb(47, 29, 139);
/* oklch */ color: oklch(34.0% 0.169 280.0);
Tailwind
colors: {
  custom: {
    50: '#755cae',
    500: '#2f1d8b',
    950: '#000000',
  },
}
SCSS
$custom: #2f1d8b;
$custom-light: #755cae;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1d8b",
  "rgb": {
    "r": 47,
    "g": 29,
    "b": 139
  },
  "hsl": {
    "h": 249.818,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34039,
    "c": 0.16879,
    "h": 280
  },
  "luminance": 0.03347
}

Semantic roles & 50–950 ramp

primary
#2F1D8B
secondary
#A8BB49
accent
#E83FCD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F1D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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