#2F1E89#2F1E89

#2F1E89 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.0% C 0.165 H 280.2°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#2F1E89
RGBrgb(47, 30, 137)
HSLhsl(250, 64%, 33%)
HSVhsv(250, 78%, 54%)
CMYKcmyk(65.7%, 78.1%, 0%, 46.3%)
CIE-LABlab(21.35, 39.74, -56.38)
CIE-LCHlch(21.35, 68.98, 305.18°)
OKLaboklab(33.95% 0.0292 -0.1627)
OKLCHoklch(33.95% 0.165 280.2)
XYZxyz(6.1505, 3.3385, 23.9824)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1E89 #78891E
analogous
#1E4289 #2F1E89 #651E89
triadic
#2F1E89 #892F1E #1E892F
tetradic
#2F1E89 #891E42 #78891E #1E8965
square
#2F1E89 #891E42 #78891E #1E8965
split-complementary
#2F1E89 #89651E #42891E
monochromatic
#0D0825 #1E1357 #2F1E89 #4029BB #604AD7

Accessibility & contrast

On white

12.59
#2F1E89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2F1E89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1E89
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1E89#FFFFFF#000000##FFFFFF
##2F1E891.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378C
Deuteranopia (green-blind)
#002F87
Tritanopia (blue-blind)
#003D52
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2f1e89;
/* rgb */ color: rgb(47, 30, 137);
/* oklch */ color: oklch(34.0% 0.165 280.2);
Tailwind
colors: {
  custom: {
    50: '#755dad',
    500: '#2f1e89',
    950: '#000000',
  },
}
SCSS
$custom: #2f1e89;
$custom-light: #755dad;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1e89",
  "rgb": {
    "r": 47,
    "g": 30,
    "b": 137
  },
  "hsl": {
    "h": 249.533,
    "s": 64.072,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33954,
    "c": 0.16534,
    "h": 280.2
  },
  "luminance": 0.03339
}

Semantic roles & 50–950 ramp

primary
#2F1E89
secondary
#A8BA49
accent
#E741CD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F1E89

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

Preview Lab → · Contrast checker → · Palette generator →

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