#2F1F96#2F1F96

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

Color values

HEX#2F1F96
RGBrgb(47, 31, 150)
HSLhsl(248, 66%, 35%)
HSVhsv(248, 79%, 59%)
CMYKcmyk(68.7%, 79.3%, 0%, 41.2%)
CIE-LABlab(22.95, 43.33, -61.82)
CIE-LCHlch(22.95, 75.50, 305.03°)
OKLaboklab(35.49% 0.0251 -0.1786)
OKLCHoklch(35.49% 0.18 278)
XYZxyz(7.1655, 3.7857, 29.2013)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1F96 #86961F
analogous
#1F4B96 #2F1F96 #6A1F96
triadic
#2F1F96 #962F1F #1F962F
tetradic
#2F1F96 #961F4B #86961F #1F966A
square
#2F1F96 #961F4B #86961F #1F966A
split-complementary
#2F1F96 #966A1F #4B961F
monochromatic
#0F0A31 #1F1563 #2F1F96 #3F29C9 #6654DC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F1F96#FFFFFF#000000##FFFFFF
##2F1F961.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)
#003B99
Deuteranopia (green-blind)
#003294
Tritanopia (blue-blind)
#00435A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f1f96;
/* rgb */ color: rgb(47, 31, 150);
/* oklch */ color: oklch(35.5% 0.180 278.0);
Tailwind
colors: {
  custom: {
    50: '#775eb6',
    500: '#2f1f96',
    950: '#000000',
  },
}
SCSS
$custom: #2f1f96;
$custom-light: #775eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1f96",
  "rgb": {
    "r": 47,
    "g": 31,
    "b": 150
  },
  "hsl": {
    "h": 248.067,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35494,
    "c": 0.18036,
    "h": 278
  },
  "luminance": 0.03786
}

Semantic roles & 50–950 ramp

primary
#2F1F96
secondary
#B0BF52
accent
#E93FD2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2F1F96

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

Preview Lab → · Contrast checker → · Palette generator →

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