#2F1E86#2F1E86

#2F1E86 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.6% C 0.162 H 280.7°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#2F1E86
RGBrgb(47, 30, 134)
HSLhsl(250, 63%, 32%)
HSVhsv(250, 78%, 53%)
CMYKcmyk(64.9%, 77.6%, 0%, 47.5%)
CIE-LABlab(21.03, 38.78, -55.03)
CIE-LCHlch(21.03, 67.32, 305.17°)
OKLaboklab(33.63% 0.03 -0.1588)
OKLCHoklch(33.63% 0.162 280.7)
XYZxyz(5.9383, 3.2537, 22.8647)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1E86 #75861E
analogous
#1E4186 #2F1E86 #631E86
triadic
#2F1E86 #862F1E #1E862F
tetradic
#2F1E86 #861E41 #75861E #1E8663
square
#2F1E86 #861E41 #75861E #1E8663
split-complementary
#2F1E86 #86631E #41861E
monochromatic
#0C0822 #1D1354 #2F1E86 #4129B8 #5F48D6

Accessibility & contrast

On white

12.72
#2F1E86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2F1E86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1E86
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1E86#FFFFFF#000000##FFFFFF
##2F1E861.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003689
Deuteranopia (green-blind)
#002F84
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2f1e86;
/* rgb */ color: rgb(47, 30, 134);
/* oklch */ color: oklch(33.6% 0.162 280.7);
Tailwind
colors: {
  custom: {
    50: '#745caa',
    500: '#2f1e86',
    950: '#000000',
  },
}
SCSS
$custom: #2f1e86;
$custom-light: #745caa;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1e86",
  "rgb": {
    "r": 47,
    "g": 30,
    "b": 134
  },
  "hsl": {
    "h": 249.808,
    "s": 63.415,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33634,
    "c": 0.1616,
    "h": 280.7
  },
  "luminance": 0.03254
}

Semantic roles & 50–950 ramp

primary
#2F1E86
secondary
#A6B847
accent
#E641CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F1E86

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

Preview Lab → · Contrast checker → · Palette generator →

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