#2F1D9E#2F1D9E

#2F1D9E is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.1% C 0.192 H 277.1°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#2F1D9E
RGBrgb(47, 29, 158)
HSLhsl(248, 69%, 37%)
HSVhsv(248, 82%, 62%)
CMYKcmyk(70.3%, 81.6%, 0%, 38%)
CIE-LABlab(23.51, 46.81, -65.81)
CIE-LCHlch(23.51, 80.76, 305.43°)
OKLaboklab(36.15% 0.0238 -0.1902)
OKLCHoklch(36.15% 0.192 277.1)
XYZxyz(7.7812, 3.9510, 32.6937)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1D9E #8C9E1D
analogous
#1D4C9E #2F1D9E #701D9E
triadic
#2F1D9E #9E2F1D #1D9E2F
tetradic
#2F1D9E #9E1D4C #8C9E1D #1D9E70
square
#2F1D9E #9E1D4C #8C9E1D #1D9E70
split-complementary
#2F1D9E #9E701D #4C9E1D
monochromatic
#100A37 #20146A #2F1D9E #3E26D2 #6956E0

Accessibility & contrast

On white

11.73
#2F1D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2F1D9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1D9E
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1D9E#FFFFFF#000000##FFFFFF
##2F1D9E1.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA2
Deuteranopia (green-blind)
#00329C
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2f1d9e;
/* rgb */ color: rgb(47, 29, 158);
/* oklch */ color: oklch(36.1% 0.192 277.1);
Tailwind
colors: {
  custom: {
    50: '#795dbc',
    500: '#2f1d9e',
    950: '#000000',
  },
}
SCSS
$custom: #2f1d9e;
$custom-light: #795dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1d9e",
  "rgb": {
    "r": 47,
    "g": 29,
    "b": 158
  },
  "hsl": {
    "h": 248.372,
    "s": 68.984,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36148,
    "c": 0.19165,
    "h": 277.1
  },
  "luminance": 0.03952
}

Semantic roles & 50–950 ramp

primary
#2F1D9E
secondary
#B4C354
accent
#EC3CD3
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2F1D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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