#2F1F86#2F1F86

#2F1F86 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.8% C 0.161 H 280.5°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#2F1F86
RGBrgb(47, 31, 134)
HSLhsl(249, 62%, 32%)
HSVhsv(249, 77%, 53%)
CMYKcmyk(64.9%, 76.9%, 0%, 47.5%)
CIE-LABlab(21.23, 38.23, -54.71)
CIE-LCHlch(21.23, 66.74, 304.94°)
OKLaboklab(33.77% 0.0293 -0.1579)
OKLCHoklch(33.77% 0.161 280.5)
XYZxyz(5.9640, 3.3051, 22.8733)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1F86 #76861F
analogous
#1F4386 #2F1F86 #621F86
triadic
#2F1F86 #862F1F #1F862F
tetradic
#2F1F86 #861F43 #76861F #1F8662
square
#2F1F86 #861F43 #76861F #1F8662
split-complementary
#2F1F86 #86621F #43861F
monochromatic
#0C0823 #1E1454 #2F1F86 #402AB8 #604AD5

Accessibility & contrast

On white

12.64
#2F1F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1F86
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1F86#FFFFFF#000000##FFFFFF
##2F1F861.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003789
Deuteranopia (green-blind)
#002F84
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2f1f86;
/* rgb */ color: rgb(47, 31, 134);
/* oklch */ color: oklch(33.8% 0.161 280.5);
Tailwind
colors: {
  custom: {
    50: '#745daa',
    500: '#2f1f86',
    950: '#000000',
  },
}
SCSS
$custom: #2f1f86;
$custom-light: #745daa;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1f86",
  "rgb": {
    "r": 47,
    "g": 31,
    "b": 134
  },
  "hsl": {
    "h": 249.32,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33771,
    "c": 0.16056,
    "h": 280.5
  },
  "luminance": 0.03306
}

Semantic roles & 50–950 ramp

primary
#2F1F86
secondary
#A7B849
accent
#E542CC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F1F86

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

Preview Lab → · Contrast checker → · Palette generator →

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