#2F1C9F#2F1C9F

#2F1C9F is a dark, vivid blue. Relative luminance 0.039; OKLCH L 36.1% C 0.194 H 277.1°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#2F1C9F
RGBrgb(47, 28, 159)
HSLhsl(249, 70%, 37%)
HSVhsv(249, 82%, 62%)
CMYKcmyk(70.4%, 82.4%, 0%, 37.6%)
CIE-LABlab(23.46, 47.58, -66.49)
CIE-LCHlch(23.46, 81.77, 305.59°)
OKLaboklab(36.15% 0.024 -0.1921)
OKLCHoklch(36.15% 0.194 277.1)
XYZxyz(7.8435, 3.9373, 33.1408)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1C9F #8C9F1C
analogous
#1C4B9F #2F1C9F #711C9F
triadic
#2F1C9F #9F2F1C #1C9F2F
tetradic
#2F1C9F #9F1C4B #8C9F1C #1C9F71
square
#2F1C9F #9F1C4B #8C9F1C #1C9F71
split-complementary
#2F1C9F #9F711C #4B9F1C
monochromatic
#100A37 #20136B #2F1C9F #3E25D3 #6954E1

Accessibility & contrast

On white

11.75
#2F1C9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2F1C9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1C9F
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1C9F#FFFFFF#000000##FFFFFF
##2F1C9F1.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA3
Deuteranopia (green-blind)
#00329D
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2f1c9f;
/* rgb */ color: rgb(47, 28, 159);
/* oklch */ color: oklch(36.1% 0.194 277.1);
Tailwind
colors: {
  custom: {
    50: '#7a5dbd',
    500: '#2f1c9f',
    950: '#000000',
  },
}
SCSS
$custom: #2f1c9f;
$custom-light: #7a5dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1c9f",
  "rgb": {
    "r": 47,
    "g": 28,
    "b": 159
  },
  "hsl": {
    "h": 248.702,
    "s": 70.053,
    "l": 36.667
  },
  "oklch": {
    "l": 0.3615,
    "c": 0.19363,
    "h": 277.1
  },
  "luminance": 0.03938
}

Semantic roles & 50–950 ramp

primary
#2F1C9F
secondary
#B4C453
accent
#ED3BD3
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2F1C9F

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

Preview Lab → · Contrast checker → · Palette generator →

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