#2B1E81#2B1E81

#2B1E81 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.8% C 0.156 H 279.3°. Best body text is #FFFFFF at 13.08:1 contrast (WCAG AA passes).

Color values

HEX#2B1E81
RGBrgb(43, 30, 129)
HSLhsl(248, 62%, 31%)
HSVhsv(248, 77%, 51%)
CMYKcmyk(66.7%, 76.7%, 0%, 49.4%)
CIE-LABlab(20.15, 36.65, -53.34)
CIE-LCHlch(20.15, 64.72, 304.49°)
OKLaboklab(32.77% 0.0253 -0.154)
OKLCHoklch(32.77% 0.156 279.3)
XYZxyz(5.4217, 3.0267, 21.0631)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1E81 #74811E
analogous
#1E4281 #2B1E81 #5C1E81
triadic
#2B1E81 #812B1E #1E812B
tetradic
#2B1E81 #811E42 #74811E #1E815C
square
#2B1E81 #811E42 #74811E #1E815C
split-complementary
#2B1E81 #815C1E #42811E
monochromatic
#0A071E #1A124F #2B1E81 #3C2AB3 #5846D4

Accessibility & contrast

On white

13.08
#2B1E81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2B1E81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1E81
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1E81#FFFFFF#000000##FFFFFF
##2B1E811.0013.081.6113.08
#FFFFFF13.081.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003484
Deuteranopia (green-blind)
#002D7F
Tritanopia (blue-blind)
#003A4E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2b1e81;
/* rgb */ color: rgb(43, 30, 129);
/* oklch */ color: oklch(32.8% 0.156 279.3);
Tailwind
colors: {
  custom: {
    50: '#715ca7',
    500: '#2b1e81',
    950: '#000000',
  },
}
SCSS
$custom: #2b1e81;
$custom-light: #715ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1e81",
  "rgb": {
    "r": 43,
    "g": 30,
    "b": 129
  },
  "hsl": {
    "h": 247.879,
    "s": 62.264,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32765,
    "c": 0.15604,
    "h": 279.3
  },
  "luminance": 0.03027
}

Semantic roles & 50–950 ramp

primary
#2B1E81
secondary
#A6B447
accent
#E542D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2B1E81

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

Preview Lab → · Contrast checker → · Palette generator →

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