#2F1C9A#2F1C9A

#2F1C9A is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.6% C 0.188 H 277.8°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#2F1C9A
RGBrgb(47, 28, 154)
HSLhsl(249, 69%, 36%)
HSVhsv(249, 82%, 60%)
CMYKcmyk(69.5%, 81.8%, 0%, 39.6%)
CIE-LABlab(22.89, 46.06, -64.39)
CIE-LCHlch(22.89, 79.17, 305.58°)
OKLaboklab(35.58% 0.0254 -0.186)
OKLCHoklch(35.58% 0.188 277.8)
XYZxyz(7.4184, 3.7673, 30.9018)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1C9A #879A1C
analogous
#1C489A #2F1C9A #6E1C9A
triadic
#2F1C9A #9A2F1C #1C9A2F
tetradic
#2F1C9A #9A1C48 #879A1C #1C9A6E
square
#2F1C9A #9A1C48 #879A1C #1C9A6E
split-complementary
#2F1C9A #9A6E1C #489A1C
monochromatic
#0F0932 #1F1366 #2F1C9A #3F25CE #6651DF

Accessibility & contrast

On white

11.98
#2F1C9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2F1C9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1C9A
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1C9A#FFFFFF#000000##FFFFFF
##2F1C9A1.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9D
Deuteranopia (green-blind)
#003198
Tritanopia (blue-blind)
#00435C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f1c9a;
/* rgb */ color: rgb(47, 28, 154);
/* oklch */ color: oklch(35.6% 0.188 277.8);
Tailwind
colors: {
  custom: {
    50: '#785db9',
    500: '#2f1c9a',
    950: '#000000',
  },
}
SCSS
$custom: #2f1c9a;
$custom-light: #785db9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1c9a",
  "rgb": {
    "r": 47,
    "g": 28,
    "b": 154
  },
  "hsl": {
    "h": 249.048,
    "s": 69.231,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35582,
    "c": 0.18775,
    "h": 277.8
  },
  "luminance": 0.03768
}

Semantic roles & 50–950 ramp

primary
#2F1C9A
secondary
#B1C250
accent
#EC3CD1
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2F1C9A

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

Preview Lab → · Contrast checker → · Palette generator →

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