#2F1D95#2F1D95

#2F1D95 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.1% C 0.181 H 278.4°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#2F1D95
RGBrgb(47, 29, 149)
HSLhsl(249, 67%, 35%)
HSVhsv(249, 81%, 58%)
CMYKcmyk(68.5%, 80.5%, 0%, 41.6%)
CIE-LABlab(22.49, 44.04, -61.97)
CIE-LCHlch(22.49, 76.02, 305.40°)
OKLaboklab(35.14% 0.0264 -0.179)
OKLCHoklch(35.14% 0.181 278.4)
XYZxyz(7.0347, 3.6524, 28.7622)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1D95 #83951D
analogous
#1D4795 #2F1D95 #6B1D95
triadic
#2F1D95 #952F1D #1D952F
tetradic
#2F1D95 #951D47 #83951D #1D956B
square
#2F1D95 #951D47 #83951D #1D956B
split-complementary
#2F1D95 #956B1D #47951D
monochromatic
#0F092F #1F1362 #2F1D95 #3F27C8 #6550DD

Accessibility & contrast

On white

12.13
#2F1D95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2F1D95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1D95
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1D95#FFFFFF#000000##FFFFFF
##2F1D951.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A98
Deuteranopia (green-blind)
#003193
Tritanopia (blue-blind)
#004159
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2f1d95;
/* rgb */ color: rgb(47, 29, 149);
/* oklch */ color: oklch(35.1% 0.181 278.4);
Tailwind
colors: {
  custom: {
    50: '#775db5',
    500: '#2f1d95',
    950: '#000000',
  },
}
SCSS
$custom: #2f1d95;
$custom-light: #775db5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1d95",
  "rgb": {
    "r": 47,
    "g": 29,
    "b": 149
  },
  "hsl": {
    "h": 249,
    "s": 67.416,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35138,
    "c": 0.18094,
    "h": 278.4
  },
  "luminance": 0.03653
}

Semantic roles & 50–950 ramp

primary
#2F1D95
secondary
#AFC04E
accent
#EA3DD0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2F1D95

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

Preview Lab → · Contrast checker → · Palette generator →

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