#2F1F8B#2F1F8B

#2F1F8B is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.3% C 0.167 H 279.7°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#2F1F8B
RGBrgb(47, 31, 139)
HSLhsl(249, 64%, 33%)
HSVhsv(249, 78%, 55%)
CMYKcmyk(66.2%, 77.7%, 0%, 45.5%)
CIE-LABlab(21.76, 39.84, -56.97)
CIE-LCHlch(21.76, 69.52, 304.96°)
OKLaboklab(34.3% 0.028 -0.1645)
OKLCHoklch(34.3% 0.167 279.7)
XYZxyz(6.3210, 3.4479, 24.7535)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1F8B #7B8B1F
analogous
#1F458B #2F1F8B #651F8B
triadic
#2F1F8B #8B2F1F #1F8B2F
tetradic
#2F1F8B #8B1F45 #7B8B1F #1F8B65
square
#2F1F8B #8B1F45 #7B8B1F #1F8B65
split-complementary
#2F1F8B #8B651F #458B1F
monochromatic
#0D0927 #1E1459 #2F1F8B #402ABD #624DD7

Accessibility & contrast

On white

12.43
#2F1F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2F1F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1F8B
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1F8B#FFFFFF#000000##FFFFFF
##2F1F8B1.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388E
Deuteranopia (green-blind)
#003089
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2f1f8b;
/* rgb */ color: rgb(47, 31, 139);
/* oklch */ color: oklch(34.3% 0.167 279.7);
Tailwind
colors: {
  custom: {
    50: '#755dae',
    500: '#2f1f8b',
    950: '#000000',
  },
}
SCSS
$custom: #2f1f8b;
$custom-light: #755dae;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1f8b",
  "rgb": {
    "r": 47,
    "g": 31,
    "b": 139
  },
  "hsl": {
    "h": 248.889,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34301,
    "c": 0.16683,
    "h": 279.7
  },
  "luminance": 0.03448
}

Semantic roles & 50–950 ramp

primary
#2F1F8B
secondary
#AABA4C
accent
#E741CE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F1F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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