#2F1B9C#2F1B9C

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

Color values

HEX#2F1B9C
RGBrgb(47, 27, 156)
HSLhsl(249, 70%, 36%)
HSVhsv(249, 83%, 61%)
CMYKcmyk(69.9%, 82.7%, 0%, 38.8%)
CIE-LABlab(22.96, 47.14, -65.50)
CIE-LCHlch(22.96, 80.70, 305.74°)
OKLaboklab(35.7% 0.0253 -0.1892)
OKLCHoklch(35.7% 0.191 277.6)
XYZxyz(7.5630, 3.7878, 31.7786)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1B9C #889C1B
analogous
#1B479C #2F1B9C #6F1B9C
triadic
#2F1B9C #9C2F1B #1B9C2F
tetradic
#2F1B9C #9C1B47 #889C1B #1B9C6F
square
#2F1B9C #9C1B47 #889C1B #1B9C6F
split-complementary
#2F1B9C #9C6F1B #479C1B
monochromatic
#100934 #1F1268 #2F1B9C #3F24D0 #6751E1

Accessibility & contrast

On white

11.95
#2F1B9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1B9C
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1B9C#FFFFFF#000000##FFFFFF
##2F1B9C1.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9F
Deuteranopia (green-blind)
#00319A
Tritanopia (blue-blind)
#00445D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f1b9c;
/* rgb */ color: rgb(47, 27, 156);
/* oklch */ color: oklch(35.7% 0.191 277.6);
Tailwind
colors: {
  custom: {
    50: '#795cbb',
    500: '#2f1b9c',
    950: '#000000',
  },
}
SCSS
$custom: #2f1b9c;
$custom-light: #795cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1b9c",
  "rgb": {
    "r": 47,
    "g": 27,
    "b": 156
  },
  "hsl": {
    "h": 249.302,
    "s": 70.492,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35698,
    "c": 0.19091,
    "h": 277.6
  },
  "luminance": 0.03789
}

Semantic roles & 50–950 ramp

primary
#2F1B9C
secondary
#B1C34F
accent
#ED3BD2
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2F1B9C

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

Preview Lab → · Contrast checker → · Palette generator →

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