#2F1D9C#2F1D9C

#2F1D9C is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.9% C 0.189 H 277.4°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#2F1D9C
RGBrgb(47, 29, 156)
HSLhsl(249, 69%, 36%)
HSVhsv(249, 81%, 61%)
CMYKcmyk(69.9%, 81.4%, 0%, 38.8%)
CIE-LABlab(23.28, 46.20, -64.96)
CIE-LCHlch(23.28, 79.71, 305.42°)
OKLaboklab(35.92% 0.0244 -0.1877)
OKLCHoklch(35.92% 0.189 277.4)
XYZxyz(7.6105, 3.8827, 31.7944)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1D9C #8A9C1D
analogous
#1D4B9C #2F1D9C #6F1D9C
triadic
#2F1D9C #9C2F1D #1D9C2F
tetradic
#2F1D9C #9C1D4B #8A9C1D #1D9C6F
square
#2F1D9C #9C1D4B #8A9C1D #1D9C6F
split-complementary
#2F1D9C #9C6F1D #4B9C1D
monochromatic
#100A35 #1F1368 #2F1D9C #3F27D0 #6854DF

Accessibility & contrast

On white

11.82
#2F1D9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2F1D9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1D9C
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1D9C#FFFFFF#000000##FFFFFF
##2F1D9C1.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9F
Deuteranopia (green-blind)
#00329A
Tritanopia (blue-blind)
#00445D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f1d9c;
/* rgb */ color: rgb(47, 29, 156);
/* oklch */ color: oklch(35.9% 0.189 277.4);
Tailwind
colors: {
  custom: {
    50: '#795dbb',
    500: '#2f1d9c',
    950: '#000000',
  },
}
SCSS
$custom: #2f1d9c;
$custom-light: #795dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1d9c",
  "rgb": {
    "r": 47,
    "g": 29,
    "b": 156
  },
  "hsl": {
    "h": 248.504,
    "s": 68.649,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35922,
    "c": 0.18929,
    "h": 277.4
  },
  "luminance": 0.03883
}

Semantic roles & 50–950 ramp

primary
#2F1D9C
secondary
#B3C252
accent
#EB3CD3
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2F1D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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