#2F1E9B#2F1E9B

#2F1E9B is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.9% C 0.187 H 277.4°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#2F1E9B
RGBrgb(47, 30, 155)
HSLhsl(248, 68%, 36%)
HSVhsv(248, 81%, 61%)
CMYKcmyk(69.7%, 80.6%, 0%, 39.2%)
CIE-LABlab(23.33, 45.40, -64.26)
CIE-LCHlch(23.33, 78.68, 305.24°)
OKLaboklab(35.93% 0.0242 -0.1857)
OKLCHoklch(35.93% 0.187 277.4)
XYZxyz(7.5510, 3.8988, 31.3586)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1E9B #8A9B1E
analogous
#1E4C9B #2F1E9B #6E1E9B
triadic
#2F1E9B #9B2F1E #1E9B2F
tetradic
#2F1E9B #9B1E4C #8A9B1E #1E9B6E
square
#2F1E9B #9B1E4C #8A9B1E #1E9B6E
split-complementary
#2F1E9B #9B6E1E #4C9B1E
monochromatic
#100A34 #1F1468 #2F1E9B #3F28CE #6855DE

Accessibility & contrast

On white

11.80
#2F1E9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2F1E9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1E9B
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1E9B#FFFFFF#000000##FFFFFF
##2F1E9B1.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9E
Deuteranopia (green-blind)
#003299
Tritanopia (blue-blind)
#00445D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2f1e9b;
/* rgb */ color: rgb(47, 30, 155);
/* oklch */ color: oklch(35.9% 0.187 277.4);
Tailwind
colors: {
  custom: {
    50: '#785eba',
    500: '#2f1e9b',
    950: '#000000',
  },
}
SCSS
$custom: #2f1e9b;
$custom-light: #785eba;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1e9b",
  "rgb": {
    "r": 47,
    "g": 30,
    "b": 155
  },
  "hsl": {
    "h": 248.16,
    "s": 67.568,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35926,
    "c": 0.18725,
    "h": 277.4
  },
  "luminance": 0.03899
}

Semantic roles & 50–950 ramp

primary
#2F1E9B
secondary
#B3C253
accent
#EA3DD3
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2F1E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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