#2F1E97#2F1E97

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

Color values

HEX#2F1E97
RGBrgb(47, 30, 151)
HSLhsl(248, 67%, 35%)
HSVhsv(248, 80%, 59%)
CMYKcmyk(68.9%, 80.1%, 0%, 40.8%)
CIE-LABlab(22.88, 44.16, -62.55)
CIE-LCHlch(22.88, 76.56, 305.22°)
OKLaboklab(35.48% 0.0254 -0.1807)
OKLCHoklch(35.48% 0.182 278)
XYZxyz(7.2207, 3.7666, 29.6187)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1E97 #86971E
analogous
#1E4997 #2F1E97 #6B1E97
triadic
#2F1E97 #972F1E #1E972F
tetradic
#2F1E97 #971E49 #86971E #1E976B
square
#2F1E97 #971E49 #86971E #1E976B
split-complementary
#2F1E97 #976B1E #49971E
monochromatic
#0F0A31 #1F1464 #2F1E97 #3F28CA #6653DD

Accessibility & contrast

On white

11.98
#2F1E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2F1E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1E97
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1E97#FFFFFF#000000##FFFFFF
##2F1E971.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1e97;
/* rgb */ color: rgb(47, 30, 151);
/* oklch */ color: oklch(35.5% 0.182 278.0);
Tailwind
colors: {
  custom: {
    50: '#785db7',
    500: '#2f1e97',
    950: '#000000',
  },
}
SCSS
$custom: #2f1e97;
$custom-light: #785db7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1e97",
  "rgb": {
    "r": 47,
    "g": 30,
    "b": 151
  },
  "hsl": {
    "h": 248.43,
    "s": 66.851,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35481,
    "c": 0.18246,
    "h": 278
  },
  "luminance": 0.03767
}

Semantic roles & 50–950 ramp

primary
#2F1E97
secondary
#B0C051
accent
#EA3ED2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2F1E97

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

Preview Lab → · Contrast checker → · Palette generator →

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