#2F1E8B#2F1E8B

#2F1E8B is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.2% C 0.168 H 279.8°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#2F1E8B
RGBrgb(47, 30, 139)
HSLhsl(249, 64%, 33%)
HSVhsv(249, 78%, 55%)
CMYKcmyk(66.2%, 78.4%, 0%, 45.5%)
CIE-LABlab(21.57, 40.38, -57.28)
CIE-LCHlch(21.57, 70.08, 305.18°)
OKLaboklab(34.17% 0.0287 -0.1654)
OKLCHoklch(34.17% 0.168 279.8)
XYZxyz(6.2953, 3.3965, 24.7449)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1E8B #7A8B1E
analogous
#1E438B #2F1E8B #651E8B
triadic
#2F1E8B #8B2F1E #1E8B2F
tetradic
#2F1E8B #8B1E43 #7A8B1E #1E8B65
square
#2F1E8B #8B1E43 #7A8B1E #1E8B65
split-complementary
#2F1E8B #8B651E #438B1E
monochromatic
#0D0826 #1E1359 #2F1E8B #4029BD #614BD8

Accessibility & contrast

On white

12.50
#2F1E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2F1E8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1E8B
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1E8B#FFFFFF#000000##FFFFFF
##2F1E8B1.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388E
Deuteranopia (green-blind)
#002F89
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2f1e8b;
/* rgb */ color: rgb(47, 30, 139);
/* oklch */ color: oklch(34.2% 0.168 279.8);
Tailwind
colors: {
  custom: {
    50: '#755dae',
    500: '#2f1e8b',
    950: '#000000',
  },
}
SCSS
$custom: #2f1e8b;
$custom-light: #755dae;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1e8b",
  "rgb": {
    "r": 47,
    "g": 30,
    "b": 139
  },
  "hsl": {
    "h": 249.358,
    "s": 64.497,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34169,
    "c": 0.16783,
    "h": 279.8
  },
  "luminance": 0.03397
}

Semantic roles & 50–950 ramp

primary
#2F1E8B
secondary
#A9BB4A
accent
#E740CD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F1E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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