#2F1D99#2F1D99

#2F1D99 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.6% C 0.186 H 277.8°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#2F1D99
RGBrgb(47, 29, 153)
HSLhsl(249, 68%, 36%)
HSVhsv(249, 81%, 60%)
CMYKcmyk(69.3%, 81%, 0%, 40%)
CIE-LABlab(22.94, 45.27, -63.69)
CIE-LCHlch(22.94, 78.14, 305.41°)
OKLaboklab(35.59% 0.0253 -0.184)
OKLCHoklch(35.59% 0.186 277.8)
XYZxyz(7.3596, 3.7823, 30.4730)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1D99 #87991D
analogous
#1D4999 #2F1D99 #6D1D99
triadic
#2F1D99 #992F1D #1D992F
tetradic
#2F1D99 #991D49 #87991D #1D996D
square
#2F1D99 #991D49 #87991D #1D996D
split-complementary
#2F1D99 #996D1D #49991D
monochromatic
#0F0932 #1F1366 #2F1D99 #3F27CC #6652DE

Accessibility & contrast

On white

11.95
#2F1D99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2F1D99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1D99
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1D99#FFFFFF#000000##FFFFFF
##2F1D991.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9C
Deuteranopia (green-blind)
#003297
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f1d99;
/* rgb */ color: rgb(47, 29, 153);
/* oklch */ color: oklch(35.6% 0.186 277.8);
Tailwind
colors: {
  custom: {
    50: '#785db8',
    500: '#2f1d99',
    950: '#000000',
  },
}
SCSS
$custom: #2f1d99;
$custom-light: #785db8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1d99",
  "rgb": {
    "r": 47,
    "g": 29,
    "b": 153
  },
  "hsl": {
    "h": 248.71,
    "s": 68.132,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35585,
    "c": 0.18573,
    "h": 277.8
  },
  "luminance": 0.03783
}

Semantic roles & 50–950 ramp

primary
#2F1D99
secondary
#B1C151
accent
#EB3DD2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2F1D99

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

Preview Lab → · Contrast checker → · Palette generator →

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