#2F1D91#2F1D91

#2F1D91 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.7% C 0.176 H 279.0°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#2F1D91
RGBrgb(47, 29, 145)
HSLhsl(249, 67%, 34%)
HSVhsv(249, 80%, 57%)
CMYKcmyk(67.6%, 80%, 0%, 43.1%)
CIE-LABlab(22.04, 42.79, -60.23)
CIE-LCHlch(22.04, 73.88, 305.39°)
OKLaboklab(34.7% 0.0276 -0.1739)
OKLCHoklch(34.7% 0.176 279)
XYZxyz(6.7209, 3.5268, 27.1091)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1D91 #7F911D
analogous
#1D4591 #2F1D91 #691D91
triadic
#2F1D91 #912F1D #1D912F
tetradic
#2F1D91 #911D45 #7F911D #1D9169
square
#2F1D91 #911D45 #7F911D #1D9169
split-complementary
#2F1D91 #91691D #45911D
monochromatic
#0E092B #1E135E #2F1D91 #4027C4 #634DDB

Accessibility & contrast

On white

12.31
#2F1D91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2F1D91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1D91
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1D91#FFFFFF#000000##FFFFFF
##2F1D911.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003994
Deuteranopia (green-blind)
#00308F
Tritanopia (blue-blind)
#004057
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2f1d91;
/* rgb */ color: rgb(47, 29, 145);
/* oklch */ color: oklch(34.7% 0.176 279.0);
Tailwind
colors: {
  custom: {
    50: '#765db2',
    500: '#2f1d91',
    950: '#000000',
  },
}
SCSS
$custom: #2f1d91;
$custom-light: #765db2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1d91",
  "rgb": {
    "r": 47,
    "g": 29,
    "b": 145
  },
  "hsl": {
    "h": 249.31,
    "s": 66.667,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34696,
    "c": 0.17611,
    "h": 279
  },
  "luminance": 0.03527
}

Semantic roles & 50–950 ramp

primary
#2F1D91
secondary
#ACBE4C
accent
#EA3ECF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2F1D91

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

Preview Lab → · Contrast checker → · Palette generator →

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