#2F1B96#2F1B96

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

Color values

HEX#2F1B96
RGBrgb(47, 27, 150)
HSLhsl(250, 69%, 35%)
HSVhsv(250, 82%, 59%)
CMYKcmyk(68.7%, 82%, 0%, 41.2%)
CIE-LABlab(22.27, 45.32, -62.95)
CIE-LCHlch(22.27, 77.57, 305.75°)
OKLaboklab(35.02% 0.0271 -0.1818)
OKLCHoklch(35.02% 0.184 278.5)
XYZxyz(7.0675, 3.5896, 29.1687)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1B96 #82961B
analogous
#1B4596 #2F1B96 #6D1B96
triadic
#2F1B96 #962F1B #1B962F
tetradic
#2F1B96 #961B45 #82961B #1B966D
square
#2F1B96 #961B45 #82961B #1B966D
split-complementary
#2F1B96 #966D1B #45961B
monochromatic
#0E082E #1F1262 #2F1B96 #3F24CA #644DDF

Accessibility & contrast

On white

12.22
#2F1B96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1B96
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1B96#FFFFFF#000000##FFFFFF
##2F1B961.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A99
Deuteranopia (green-blind)
#003094
Tritanopia (blue-blind)
#004159
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2f1b96;
/* rgb */ color: rgb(47, 27, 150);
/* oklch */ color: oklch(35.0% 0.184 278.5);
Tailwind
colors: {
  custom: {
    50: '#785cb6',
    500: '#2f1b96',
    950: '#000000',
  },
}
SCSS
$custom: #2f1b96;
$custom-light: #785cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1b96",
  "rgb": {
    "r": 47,
    "g": 27,
    "b": 150
  },
  "hsl": {
    "h": 249.756,
    "s": 69.492,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35017,
    "c": 0.18384,
    "h": 278.5
  },
  "luminance": 0.0359
}

Semantic roles & 50–950 ramp

primary
#2F1B96
secondary
#AEC14C
accent
#EC3BD0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2F1B96

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

Preview Lab → · Contrast checker → · Palette generator →

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