#2F1FBB#2F1FBB

#2F1FBB is a dark, highly saturated blue. Relative luminance 0.052; OKLCH L 39.7% C 0.223 H 273.8°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#2F1FBB
RGBrgb(47, 31, 187)
HSLhsl(246, 72%, 43%)
HSVhsv(246, 83%, 73%)
CMYKcmyk(74.9%, 83.4%, 0%, 26.7%)
CIE-LABlab(27.22, 54.61, -77.11)
CIE-LCHlch(27.22, 94.49, 305.31°)
OKLaboklab(39.69% 0.0149 -0.223)
OKLCHoklch(39.69% 0.223 273.8)
XYZxyz(10.6289, 5.1711, 47.4420)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1FBB #ABBB1F
analogous
#1F5DBB #2F1FBB #7D1FBB
triadic
#2F1FBB #BB2F1F #1FBB2F
tetradic
#2F1FBB #BB1F5D #ABBB1F #1FBB7D
square
#2F1FBB #BB1F5D #ABBB1F #1FBB7D
split-complementary
#2F1FBB #BB7D1F #5DBB1F
monochromatic
#150E52 #221687 #2F1FBB #4A39DE #7A6EE7

Accessibility & contrast

On white

10.32
#2F1FBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#2F1FBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1FBB
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1FBB#FFFFFF#000000##FFFFFF
##2F1FBB1.0010.322.0310.32
#FFFFFF10.321.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047BF
Deuteranopia (green-blind)
#0039B8
Tritanopia (blue-blind)
#005270
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2f1fbb;
/* rgb */ color: rgb(47, 31, 187);
/* oklch */ color: oklch(39.7% 0.223 273.8);
Tailwind
colors: {
  custom: {
    50: '#8061d1',
    500: '#2f1fbb',
    950: '#000000',
  },
}
SCSS
$custom: #2f1fbb;
$custom-light: #8061d1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1fbb",
  "rgb": {
    "r": 47,
    "g": 31,
    "b": 187
  },
  "hsl": {
    "h": 246.154,
    "s": 71.56,
    "l": 42.745
  },
  "oklch": {
    "l": 0.39693,
    "c": 0.22348,
    "h": 273.8
  },
  "luminance": 0.05172
}

Semantic roles & 50–950 ramp

primary
#2F1FBB
secondary
#C3CD69
accent
#EE3ADC
background
#F8F5FD
surface
#F0EAFA
border
#CBC6D3
text
#0C0514
muted
#7D7983

Preview Lab

Preview with #2F1FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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