#2F1D8A#2F1D8A

#2F1D8A is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.9% C 0.168 H 280.2°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#2F1D8A
RGBrgb(47, 29, 138)
HSLhsl(250, 65%, 33%)
HSVhsv(250, 79%, 54%)
CMYKcmyk(65.9%, 79%, 0%, 45.9%)
CIE-LABlab(21.27, 40.59, -57.14)
CIE-LCHlch(21.27, 70.09, 305.39°)
OKLaboklab(33.93% 0.0295 -0.1649)
OKLCHoklch(33.93% 0.168 280.2)
XYZxyz(6.1976, 3.3176, 24.3536)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1D8A #788A1D
analogous
#1D428A #2F1D8A #651D8A
triadic
#2F1D8A #8A2F1D #1D8A2F
tetradic
#2F1D8A #8A1D42 #788A1D #1D8A65
square
#2F1D8A #8A1D42 #788A1D #1D8A65
split-complementary
#2F1D8A #8A651D #428A1D
monochromatic
#0D0825 #1E1257 #2F1D8A #4028BD #6049D9

Accessibility & contrast

On white

12.62
#2F1D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2F1D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1D8A
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1D8A#FFFFFF#000000##FFFFFF
##2F1D8A1.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1d8a;
/* rgb */ color: rgb(47, 29, 138);
/* oklch */ color: oklch(33.9% 0.168 280.2);
Tailwind
colors: {
  custom: {
    50: '#755cad',
    500: '#2f1d8a',
    950: '#000000',
  },
}
SCSS
$custom: #2f1d8a;
$custom-light: #755cad;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1d8a",
  "rgb": {
    "r": 47,
    "g": 29,
    "b": 138
  },
  "hsl": {
    "h": 249.908,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33931,
    "c": 0.16755,
    "h": 280.2
  },
  "luminance": 0.03318
}

Semantic roles & 50–950 ramp

primary
#2F1D8A
secondary
#A8BB48
accent
#E840CC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F1D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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