#2F1E85#2F1E85

#2F1E85 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.5% C 0.160 H 280.9°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#2F1E85
RGBrgb(47, 30, 133)
HSLhsl(250, 63%, 32%)
HSVhsv(250, 77%, 52%)
CMYKcmyk(64.7%, 77.4%, 0%, 47.8%)
CIE-LABlab(20.93, 38.46, -54.57)
CIE-LCHlch(20.93, 66.76, 305.17°)
OKLaboklab(33.53% 0.0302 -0.1575)
OKLCHoklch(33.53% 0.16 280.9)
XYZxyz(5.8689, 3.2259, 22.4991)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1E85 #74851E
analogous
#1E4185 #2F1E85 #631E85
triadic
#2F1E85 #852F1E #1E852F
tetradic
#2F1E85 #851E41 #74851E #1E8563
square
#2F1E85 #851E41 #74851E #1E8563
split-complementary
#2F1E85 #85631E #41851E
monochromatic
#0C0721 #1D1353 #2F1E85 #4129B7 #5F48D6

Accessibility & contrast

On white

12.76
#2F1E85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1E85
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1E85#FFFFFF#000000##FFFFFF
##2F1E851.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003688
Deuteranopia (green-blind)
#002E83
Tritanopia (blue-blind)
#003C50
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2f1e85;
/* rgb */ color: rgb(47, 30, 133);
/* oklch */ color: oklch(33.5% 0.160 280.9);
Tailwind
colors: {
  custom: {
    50: '#745caa',
    500: '#2f1e85',
    950: '#000000',
  },
}
SCSS
$custom: #2f1e85;
$custom-light: #745caa;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1e85",
  "rgb": {
    "r": 47,
    "g": 30,
    "b": 133
  },
  "hsl": {
    "h": 249.903,
    "s": 63.19,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33528,
    "c": 0.16034,
    "h": 280.9
  },
  "luminance": 0.03226
}

Semantic roles & 50–950 ramp

primary
#2F1E85
secondary
#A5B847
accent
#E642CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F1E85

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

Preview Lab → · Contrast checker → · Palette generator →

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