#2F1D94#2F1D94

#2F1D94 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.0% C 0.180 H 278.5°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#2F1D94
RGBrgb(47, 29, 148)
HSLhsl(249, 67%, 35%)
HSVhsv(249, 80%, 58%)
CMYKcmyk(68.2%, 80.4%, 0%, 42%)
CIE-LABlab(22.38, 43.72, -61.54)
CIE-LCHlch(22.38, 75.49, 305.40°)
OKLaboklab(35.03% 0.0267 -0.1777)
OKLCHoklch(35.03% 0.18 278.5)
XYZxyz(6.9552, 3.6206, 28.3435)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1D94 #82941D
analogous
#1D4694 #2F1D94 #6B1D94
triadic
#2F1D94 #942F1D #1D942F
tetradic
#2F1D94 #941D46 #82941D #1D946B
square
#2F1D94 #941D46 #82941D #1D946B
split-complementary
#2F1D94 #946B1D #46941D
monochromatic
#0E092E #1F1361 #2F1D94 #3F27C7 #644FDC

Accessibility & contrast

On white

12.18
#2F1D94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1D94
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1D94#FFFFFF#000000##FFFFFF
##2F1D941.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1d94;
/* rgb */ color: rgb(47, 29, 148);
/* oklch */ color: oklch(35.0% 0.180 278.5);
Tailwind
colors: {
  custom: {
    50: '#775db5',
    500: '#2f1d94',
    950: '#000000',
  },
}
SCSS
$custom: #2f1d94;
$custom-light: #775db5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1d94",
  "rgb": {
    "r": 47,
    "g": 29,
    "b": 148
  },
  "hsl": {
    "h": 249.076,
    "s": 67.232,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35027,
    "c": 0.17974,
    "h": 278.5
  },
  "luminance": 0.03621
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F1D94

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

Preview Lab → · Contrast checker → · Palette generator →

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