#2F1D9A#2F1D9A

#2F1D9A is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.7% C 0.187 H 277.7°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#2F1D9A
RGBrgb(47, 29, 154)
HSLhsl(249, 68%, 36%)
HSVhsv(249, 81%, 60%)
CMYKcmyk(69.5%, 81.2%, 0%, 39.6%)
CIE-LABlab(23.05, 45.58, -64.11)
CIE-LCHlch(23.05, 78.67, 305.41°)
OKLaboklab(35.7% 0.025 -0.1852)
OKLCHoklch(35.7% 0.187 277.7)
XYZxyz(7.4425, 3.8155, 30.9098)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1D9A #889A1D
analogous
#1D499A #2F1D9A #6D1D9A
triadic
#2F1D9A #9A2F1D #1D9A2F
tetradic
#2F1D9A #9A1D49 #889A1D #1D9A6D
square
#2F1D9A #9A1D49 #889A1D #1D9A6D
split-complementary
#2F1D9A #9A6D1D #499A1D
monochromatic
#100A33 #1F1366 #2F1D9A #3F27CE #6753DF

Accessibility & contrast

On white

11.91
#2F1D9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2F1D9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1D9A
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1D9A#FFFFFF#000000##FFFFFF
##2F1D9A1.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1d9a;
/* rgb */ color: rgb(47, 29, 154);
/* oklch */ color: oklch(35.7% 0.187 277.7);
Tailwind
colors: {
  custom: {
    50: '#785db9',
    500: '#2f1d9a',
    950: '#000000',
  },
}
SCSS
$custom: #2f1d9a;
$custom-light: #785db9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1d9a",
  "rgb": {
    "r": 47,
    "g": 29,
    "b": 154
  },
  "hsl": {
    "h": 248.64,
    "s": 68.306,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35697,
    "c": 0.18692,
    "h": 277.7
  },
  "luminance": 0.03816
}

Semantic roles & 50–950 ramp

primary
#2F1D9A
secondary
#B1C251
accent
#EB3DD2
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2F1D9A

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

Preview Lab → · Contrast checker → · Palette generator →

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