#2F1F97#2F1F97

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

Color values

HEX#2F1F97
RGBrgb(47, 31, 151)
HSLhsl(248, 66%, 36%)
HSVhsv(248, 79%, 59%)
CMYKcmyk(68.9%, 79.5%, 0%, 40.8%)
CIE-LABlab(23.06, 43.65, -62.26)
CIE-LCHlch(23.06, 76.03, 305.04°)
OKLaboklab(35.6% 0.0248 -0.1799)
OKLCHoklch(35.6% 0.182 277.9)
XYZxyz(7.2464, 3.8180, 29.6272)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1F97 #87971F
analogous
#1F4B97 #2F1F97 #6B1F97
triadic
#2F1F97 #972F1F #1F972F
tetradic
#2F1F97 #971F4B #87971F #1F976B
square
#2F1F97 #971F4B #87971F #1F976B
split-complementary
#2F1F97 #976B1F #4B971F
monochromatic
#0F0A31 #1F1564 #2F1F97 #3F29CA #6654DC

Accessibility & contrast

On white

11.91
#2F1F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1F97
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1F97#FFFFFF#000000##FFFFFF
##2F1F971.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1f97;
/* rgb */ color: rgb(47, 31, 151);
/* oklch */ color: oklch(35.6% 0.182 277.9);
Tailwind
colors: {
  custom: {
    50: '#775eb7',
    500: '#2f1f97',
    950: '#000000',
  },
}
SCSS
$custom: #2f1f97;
$custom-light: #775eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1f97",
  "rgb": {
    "r": 47,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 248,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35604,
    "c": 0.18157,
    "h": 277.9
  },
  "luminance": 0.03819
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F1F97

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

Preview Lab → · Contrast checker → · Palette generator →

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