#2F1BA0#2F1BA0

#2F1BA0 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 36.2% C 0.196 H 277.1°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#2F1BA0
RGBrgb(47, 27, 160)
HSLhsl(249, 71%, 37%)
HSVhsv(249, 83%, 63%)
CMYKcmyk(70.6%, 83.1%, 0%, 37.3%)
CIE-LABlab(23.42, 48.34, -67.17)
CIE-LCHlch(23.42, 82.76, 305.74°)
OKLaboklab(36.16% 0.0241 -0.1941)
OKLCHoklch(36.16% 0.196 277.1)
XYZxyz(7.9073, 3.9255, 33.5919)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1BA0 #8CA01B
analogous
#1B49A0 #2F1BA0 #721BA0
triadic
#2F1BA0 #A02F1B #1BA02F
tetradic
#2F1BA0 #A01B49 #8CA01B #1BA072
square
#2F1BA0 #A01B49 #8CA01B #1BA072
split-complementary
#2F1BA0 #A0721B #49A01B
monochromatic
#100937 #20126C #2F1BA0 #3E24D4 #6953E2

Accessibility & contrast

On white

11.76
#2F1BA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1BA0
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1BA0#FFFFFF#000000##FFFFFF
##2F1BA01.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA4
Deuteranopia (green-blind)
#00329E
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2f1ba0;
/* rgb */ color: rgb(47, 27, 160);
/* oklch */ color: oklch(36.2% 0.196 277.1);
Tailwind
colors: {
  custom: {
    50: '#7a5dbd',
    500: '#2f1ba0',
    950: '#000000',
  },
}
SCSS
$custom: #2f1ba0;
$custom-light: #7a5dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1ba0",
  "rgb": {
    "r": 47,
    "g": 27,
    "b": 160
  },
  "hsl": {
    "h": 249.023,
    "s": 71.123,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36156,
    "c": 0.19557,
    "h": 277.1
  },
  "luminance": 0.03926
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F1BA0

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

Preview Lab → · Contrast checker → · Palette generator →

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