#2F1C97#2F1C97

#2F1C97 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.2% C 0.184 H 278.2°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#2F1C97
RGBrgb(47, 28, 151)
HSLhsl(249, 69%, 35%)
HSVhsv(249, 81%, 59%)
CMYKcmyk(68.9%, 81.5%, 0%, 40.8%)
CIE-LABlab(22.54, 45.14, -63.11)
CIE-LCHlch(22.54, 77.59, 305.58°)
OKLaboklab(35.24% 0.0263 -0.1823)
OKLCHoklch(35.24% 0.184 278.2)
XYZxyz(7.1717, 3.6686, 29.6023)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1C97 #84971C
analogous
#1C4797 #2F1C97 #6C1C97
triadic
#2F1C97 #972F1C #1C972F
tetradic
#2F1C97 #971C47 #84971C #1C976C
square
#2F1C97 #971C47 #84971C #1C976C
split-complementary
#2F1C97 #976C1C #47971C
monochromatic
#0F0930 #1F1263 #2F1C97 #3F26CB #654FDE

Accessibility & contrast

On white

12.11
#2F1C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2F1C97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1C97
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1C97#FFFFFF#000000##FFFFFF
##2F1C971.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9A
Deuteranopia (green-blind)
#003195
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2f1c97;
/* rgb */ color: rgb(47, 28, 151);
/* oklch */ color: oklch(35.2% 0.184 278.2);
Tailwind
colors: {
  custom: {
    50: '#785cb7',
    500: '#2f1c97',
    950: '#000000',
  },
}
SCSS
$custom: #2f1c97;
$custom-light: #785cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1c97",
  "rgb": {
    "r": 47,
    "g": 28,
    "b": 151
  },
  "hsl": {
    "h": 249.268,
    "s": 68.715,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35244,
    "c": 0.18419,
    "h": 278.2
  },
  "luminance": 0.03669
}

Semantic roles & 50–950 ramp

primary
#2F1C97
secondary
#AFC14E
accent
#EC3CD0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2F1C97

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

Preview Lab → · Contrast checker → · Palette generator →

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