#2F1F91#2F1F91

#2F1F91 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.9% C 0.174 H 278.7°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#2F1F91
RGBrgb(47, 31, 145)
HSLhsl(248, 65%, 35%)
HSVhsv(248, 79%, 57%)
CMYKcmyk(67.6%, 78.6%, 0%, 43.1%)
CIE-LABlab(22.40, 41.75, -59.64)
CIE-LCHlch(22.40, 72.80, 305.00°)
OKLaboklab(34.95% 0.0265 -0.1722)
OKLCHoklch(34.95% 0.174 278.7)
XYZxyz(6.7715, 3.6281, 27.1260)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1F91 #81911F
analogous
#1F4891 #2F1F91 #681F91
triadic
#2F1F91 #912F1F #1F912F
tetradic
#2F1F91 #911F48 #81911F #1F9168
square
#2F1F91 #911F48 #81911F #1F9168
split-complementary
#2F1F91 #91681F #48911F
monochromatic
#0E092C #1F145F #2F1F91 #3F2AC3 #6451DA

Accessibility & contrast

On white

12.17
#2F1F91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2F1F91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1F91
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1F91#FFFFFF#000000##FFFFFF
##2F1F911.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A94
Deuteranopia (green-blind)
#00318F
Tritanopia (blue-blind)
#004157
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2f1f91;
/* rgb */ color: rgb(47, 31, 145);
/* oklch */ color: oklch(34.9% 0.174 278.7);
Tailwind
colors: {
  custom: {
    50: '#765eb2',
    500: '#2f1f91',
    950: '#000000',
  },
}
SCSS
$custom: #2f1f91;
$custom-light: #765eb2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1f91",
  "rgb": {
    "r": 47,
    "g": 31,
    "b": 145
  },
  "hsl": {
    "h": 248.421,
    "s": 64.773,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34948,
    "c": 0.17425,
    "h": 278.7
  },
  "luminance": 0.03629
}

Semantic roles & 50–950 ramp

primary
#2F1F91
secondary
#ADBD4F
accent
#E840D0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2F1F91

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

Preview Lab → · Contrast checker → · Palette generator →

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