#2F1BA1#2F1BA1

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

Color values

HEX#2F1BA1
RGBrgb(47, 27, 161)
HSLhsl(249, 71%, 37%)
HSVhsv(249, 83%, 63%)
CMYKcmyk(70.8%, 83.2%, 0%, 36.9%)
CIE-LABlab(23.54, 48.64, -67.58)
CIE-LCHlch(23.54, 83.27, 305.74°)
OKLaboklab(36.27% 0.0238 -0.1953)
OKLCHoklch(36.27% 0.197 276.9)
XYZxyz(7.9952, 3.9607, 34.0544)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1BA1 #8DA11B
analogous
#1B4AA1 #2F1BA1 #721BA1
triadic
#2F1BA1 #A12F1B #1BA12F
tetradic
#2F1BA1 #A11B4A #8DA11B #1BA172
square
#2F1BA1 #A11B4A #8DA11B #1BA172
split-complementary
#2F1BA1 #A1721B #4AA11B
monochromatic
#100938 #20126D #2F1BA1 #3E24D5 #6954E2

Accessibility & contrast

On white

11.72
#2F1BA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2F1BA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1BA1
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1BA1#FFFFFF#000000##FFFFFF
##2F1BA11.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA5
Deuteranopia (green-blind)
#00329F
Tritanopia (blue-blind)
#004660
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2f1ba1;
/* rgb */ color: rgb(47, 27, 161);
/* oklch */ color: oklch(36.3% 0.197 276.9);
Tailwind
colors: {
  custom: {
    50: '#7a5dbe',
    500: '#2f1ba1',
    950: '#000000',
  },
}
SCSS
$custom: #2f1ba1;
$custom-light: #7a5dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1ba1",
  "rgb": {
    "r": 47,
    "g": 27,
    "b": 161
  },
  "hsl": {
    "h": 248.955,
    "s": 71.277,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36271,
    "c": 0.19673,
    "h": 276.9
  },
  "luminance": 0.03961
}

Semantic roles & 50–950 ramp

primary
#2F1BA1
secondary
#B4C552
accent
#EE3AD3
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2F1BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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