#2F1C9D#2F1C9D

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

Color values

HEX#2F1C9D
RGBrgb(47, 28, 157)
HSLhsl(249, 70%, 36%)
HSVhsv(249, 82%, 62%)
CMYKcmyk(70.1%, 82.2%, 0%, 38.4%)
CIE-LABlab(23.23, 46.98, -65.65)
CIE-LCHlch(23.23, 80.73, 305.58°)
OKLaboklab(35.92% 0.0246 -0.1897)
OKLCHoklch(35.92% 0.191 277.4)
XYZxyz(7.6714, 3.8685, 32.2342)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1C9D #8A9D1C
analogous
#1C4A9D #2F1C9D #701C9D
triadic
#2F1C9D #9D2F1C #1C9D2F
tetradic
#2F1C9D #9D1C4A #8A9D1C #1C9D70
square
#2F1C9D #9D1C4A #8A9D1C #1C9D70
split-complementary
#2F1C9D #9D701C #4A9D1C
monochromatic
#100935 #1F1369 #2F1C9D #3F25D1 #6853E0

Accessibility & contrast

On white

11.84
#2F1C9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2F1C9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1C9D
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1C9D#FFFFFF#000000##FFFFFF
##2F1C9D1.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA1
Deuteranopia (green-blind)
#00329B
Tritanopia (blue-blind)
#00445D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f1c9d;
/* rgb */ color: rgb(47, 28, 157);
/* oklch */ color: oklch(35.9% 0.191 277.4);
Tailwind
colors: {
  custom: {
    50: '#795dbb',
    500: '#2f1c9d',
    950: '#000000',
  },
}
SCSS
$custom: #2f1c9d;
$custom-light: #795dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1c9d",
  "rgb": {
    "r": 47,
    "g": 28,
    "b": 157
  },
  "hsl": {
    "h": 248.837,
    "s": 69.73,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35922,
    "c": 0.19128,
    "h": 277.4
  },
  "luminance": 0.03869
}

Semantic roles & 50–950 ramp

primary
#2F1C9D
secondary
#B3C351
accent
#ED3BD2
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2F1C9D

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

Preview Lab → · Contrast checker → · Palette generator →

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