#2F1D93#2F1D93

#2F1D93 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.9% C 0.179 H 278.7°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#2F1D93
RGBrgb(47, 29, 147)
HSLhsl(249, 67%, 35%)
HSVhsv(249, 80%, 58%)
CMYKcmyk(68%, 80.3%, 0%, 42.4%)
CIE-LABlab(22.26, 43.41, -61.10)
CIE-LCHlch(22.26, 74.95, 305.39°)
OKLaboklab(34.92% 0.027 -0.1765)
OKLCHoklch(34.92% 0.179 278.7)
XYZxyz(6.8764, 3.5891, 27.9285)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1D93 #81931D
analogous
#1D4693 #2F1D93 #6A1D93
triadic
#2F1D93 #932F1D #1D932F
tetradic
#2F1D93 #931D46 #81931D #1D936A
square
#2F1D93 #931D46 #81931D #1D936A
split-complementary
#2F1D93 #936A1D #46931D
monochromatic
#0E092D #1F1360 #2F1D93 #3F27C6 #644EDC

Accessibility & contrast

On white

12.22
#2F1D93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2F1D93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1D93
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1D93#FFFFFF#000000##FFFFFF
##2F1D931.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A96
Deuteranopia (green-blind)
#003091
Tritanopia (blue-blind)
#004158
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2f1d93;
/* rgb */ color: rgb(47, 29, 147);
/* oklch */ color: oklch(34.9% 0.179 278.7);
Tailwind
colors: {
  custom: {
    50: '#775db4',
    500: '#2f1d93',
    950: '#000000',
  },
}
SCSS
$custom: #2f1d93;
$custom-light: #775db4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1d93",
  "rgb": {
    "r": 47,
    "g": 29,
    "b": 147
  },
  "hsl": {
    "h": 249.153,
    "s": 67.045,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34916,
    "c": 0.17853,
    "h": 278.7
  },
  "luminance": 0.0359
}

Semantic roles & 50–950 ramp

primary
#2F1D93
secondary
#ADBF4D
accent
#EA3ED0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2F1D93

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

Preview Lab → · Contrast checker → · Palette generator →

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