#2F1D9F#2F1D9F

#2F1D9F is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.3% C 0.193 H 277.0°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#2F1D9F
RGBrgb(47, 29, 159)
HSLhsl(248, 69%, 37%)
HSVhsv(248, 82%, 62%)
CMYKcmyk(70.4%, 81.8%, 0%, 37.6%)
CIE-LABlab(23.62, 47.11, -66.23)
CIE-LCHlch(23.62, 81.28, 305.43°)
OKLaboklab(36.26% 0.0235 -0.1914)
OKLCHoklch(36.26% 0.193 277)
XYZxyz(7.8676, 3.9856, 33.1488)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1D9F #8D9F1D
analogous
#1D4C9F #2F1D9F #701D9F
triadic
#2F1D9F #9F2F1D #1D9F2F
tetradic
#2F1D9F #9F1D4C #8D9F1D #1D9F70
square
#2F1D9F #9F1D4C #8D9F1D #1D9F70
split-complementary
#2F1D9F #9F701D #4C9F1D
monochromatic
#100A37 #20146B #2F1D9F #3E26D3 #6956E0

Accessibility & contrast

On white

11.68
#2F1D9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2F1D9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1D9F
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1D9F#FFFFFF#000000##FFFFFF
##2F1D9F1.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1d9f;
/* rgb */ color: rgb(47, 29, 159);
/* oklch */ color: oklch(36.3% 0.193 277.0);
Tailwind
colors: {
  custom: {
    50: '#795dbd',
    500: '#2f1d9f',
    950: '#000000',
  },
}
SCSS
$custom: #2f1d9f;
$custom-light: #795dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1d9f",
  "rgb": {
    "r": 47,
    "g": 29,
    "b": 159
  },
  "hsl": {
    "h": 248.308,
    "s": 69.149,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36261,
    "c": 0.19282,
    "h": 277
  },
  "luminance": 0.03986
}

Semantic roles & 50–950 ramp

primary
#2F1D9F
secondary
#B4C454
accent
#EC3CD4
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2F1D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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