#2F1D97#2F1D97

#2F1D97 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.4% C 0.183 H 278.1°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#2F1D97
RGBrgb(47, 29, 151)
HSLhsl(249, 68%, 35%)
HSVhsv(249, 81%, 59%)
CMYKcmyk(68.9%, 80.8%, 0%, 40.8%)
CIE-LABlab(22.71, 44.66, -62.83)
CIE-LCHlch(22.71, 77.08, 305.40°)
OKLaboklab(35.36% 0.0259 -0.1815)
OKLCHoklch(35.36% 0.183 278.1)
XYZxyz(7.1958, 3.7168, 29.6104)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1D97 #85971D
analogous
#1D4897 #2F1D97 #6C1D97
triadic
#2F1D97 #972F1D #1D972F
tetradic
#2F1D97 #971D48 #85971D #1D976C
square
#2F1D97 #971D48 #85971D #1D976C
split-complementary
#2F1D97 #976C1D #48971D
monochromatic
#0F0930 #1F1364 #2F1D97 #3F27CA #6651DE

Accessibility & contrast

On white

12.05
#2F1D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2F1D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1D97
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1D97#FFFFFF#000000##FFFFFF
##2F1D971.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.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: #2f1d97;
/* rgb */ color: rgb(47, 29, 151);
/* oklch */ color: oklch(35.4% 0.183 278.1);
Tailwind
colors: {
  custom: {
    50: '#785db7',
    500: '#2f1d97',
    950: '#000000',
  },
}
SCSS
$custom: #2f1d97;
$custom-light: #785db7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1d97",
  "rgb": {
    "r": 47,
    "g": 29,
    "b": 151
  },
  "hsl": {
    "h": 248.852,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35361,
    "c": 0.18334,
    "h": 278.1
  },
  "luminance": 0.03717
}

Semantic roles & 50–950 ramp

primary
#2F1D97
secondary
#B0C04F
accent
#EB3DD1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2F1D97

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

Preview Lab → · Contrast checker → · Palette generator →

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