#2F1B9B#2F1B9B

#2F1B9B is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.6% C 0.190 H 277.7°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#2F1B9B
RGBrgb(47, 27, 155)
HSLhsl(249, 70%, 36%)
HSVhsv(249, 83%, 61%)
CMYKcmyk(69.7%, 82.6%, 0%, 39.2%)
CIE-LABlab(22.84, 46.84, -65.08)
CIE-LCHlch(22.84, 80.18, 305.74°)
OKLaboklab(35.58% 0.0256 -0.188)
OKLCHoklch(35.58% 0.19 277.7)
XYZxyz(7.4787, 3.7541, 31.3345)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1B9B #879B1B
analogous
#1B479B #2F1B9B #6F1B9B
triadic
#2F1B9B #9B2F1B #1B9B2F
tetradic
#2F1B9B #9B1B47 #879B1B #1B9B6F
square
#2F1B9B #9B1B47 #879B1B #1B9B6F
split-complementary
#2F1B9B #9B6F1B #479B1B
monochromatic
#0F0933 #1F1267 #2F1B9B #3F24CF #6650E0

Accessibility & contrast

On white

11.99
#2F1B9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2F1B9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1B9B
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1B9B#FFFFFF#000000##FFFFFF
##2F1B9B1.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9E
Deuteranopia (green-blind)
#003199
Tritanopia (blue-blind)
#00435C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f1b9b;
/* rgb */ color: rgb(47, 27, 155);
/* oklch */ color: oklch(35.6% 0.190 277.7);
Tailwind
colors: {
  custom: {
    50: '#795cba',
    500: '#2f1b9b',
    950: '#000000',
  },
}
SCSS
$custom: #2f1b9b;
$custom-light: #795cba;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1b9b",
  "rgb": {
    "r": 47,
    "g": 27,
    "b": 155
  },
  "hsl": {
    "h": 249.375,
    "s": 70.33,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35584,
    "c": 0.18973,
    "h": 277.7
  },
  "luminance": 0.03755
}

Semantic roles & 50–950 ramp

primary
#2F1B9B
secondary
#B1C34F
accent
#ED3BD1
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2F1B9B

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

Preview Lab → · Contrast checker → · Palette generator →

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