#2F1DB1#2F1DB1

#2F1DB1 is a dark, highly saturated blue. Relative luminance 0.047; OKLCH L 38.3% C 0.214 H 274.9°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#2F1DB1
RGBrgb(47, 29, 177)
HSLhsl(247, 72%, 40%)
HSVhsv(247, 84%, 69%)
CMYKcmyk(73.4%, 83.6%, 0%, 30.6%)
CIE-LABlab(25.73, 52.52, -73.62)
CIE-LCHlch(25.73, 90.43, 305.51°)
OKLaboklab(38.33% 0.0183 -0.2128)
OKLCHoklch(38.33% 0.214 274.9)
XYZxyz(9.5448, 4.6564, 41.9822)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1DB1 #9FB11D
analogous
#1D55B1 #2F1DB1 #791DB1
triadic
#2F1DB1 #B12F1D #1DB12F
tetradic
#2F1DB1 #B11D55 #9FB11D #1DB179
square
#2F1DB1 #B11D55 #9FB11D #1DB179
split-complementary
#2F1DB1 #B1791D #55B11D
monochromatic
#130C48 #21147C #2F1DB1 #442EDD #7363E5

Accessibility & contrast

On white

10.87
#2F1DB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2F1DB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1DB1
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1DB1#FFFFFF#000000##FFFFFF
##2F1DB11.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043B5
Deuteranopia (green-blind)
#0036AF
Tritanopia (blue-blind)
#004D69
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2f1db1;
/* rgb */ color: rgb(47, 29, 177);
/* oklch */ color: oklch(38.3% 0.214 274.9);
Tailwind
colors: {
  custom: {
    50: '#7e5fca',
    500: '#2f1db1',
    950: '#000000',
  },
}
SCSS
$custom: #2f1db1;
$custom-light: #7e5fca;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1db1",
  "rgb": {
    "r": 47,
    "g": 29,
    "b": 177
  },
  "hsl": {
    "h": 247.297,
    "s": 71.845,
    "l": 40.392
  },
  "oklch": {
    "l": 0.38329,
    "c": 0.21361,
    "h": 274.9
  },
  "luminance": 0.04657
}

Semantic roles & 50–950 ramp

primary
#2F1DB1
secondary
#BDCA60
accent
#EF39D9
background
#F8F5FC
surface
#F0EAF9
border
#CBC6D2
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #2F1DB1

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

Preview Lab → · Contrast checker → · Palette generator →

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