#2B1E8E#2B1E8E

#2B1E8E is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.2% C 0.172 H 277.3°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#2B1E8E
RGBrgb(43, 30, 142)
HSLhsl(247, 65%, 34%)
HSVhsv(247, 79%, 56%)
CMYKcmyk(69.7%, 78.9%, 0%, 44.3%)
CIE-LABlab(21.56, 40.90, -59.17)
CIE-LCHlch(21.56, 71.93, 304.65°)
OKLaboklab(34.18% 0.022 -0.171)
OKLCHoklch(34.18% 0.172 277.3)
XYZxyz(6.3414, 3.3946, 25.9070)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1E8E #818E1E
analogous
#1E498E #2B1E8E #631E8E
triadic
#2B1E8E #8E2B1E #1E8E2B
tetradic
#2B1E8E #8E1E49 #818E1E #1E8E63
square
#2B1E8E #8E1E49 #818E1E #1E8E63
split-complementary
#2B1E8E #8E631E #498E1E
monochromatic
#0C0929 #1C135B #2B1E8E #3A29C1 #5D4DD9

Accessibility & contrast

On white

12.51
#2B1E8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2B1E8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1E8E
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1E8E#FFFFFF#000000##FFFFFF
##2B1E8E1.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003891
Deuteranopia (green-blind)
#002F8C
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2b1e8e;
/* rgb */ color: rgb(43, 30, 142);
/* oklch */ color: oklch(34.2% 0.172 277.3);
Tailwind
colors: {
  custom: {
    50: '#745db0',
    500: '#2b1e8e',
    950: '#000000',
  },
}
SCSS
$custom: #2b1e8e;
$custom-light: #745db0;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1e8e",
  "rgb": {
    "r": 43,
    "g": 30,
    "b": 142
  },
  "hsl": {
    "h": 246.964,
    "s": 65.116,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34176,
    "c": 0.17239,
    "h": 277.3
  },
  "luminance": 0.03395
}

Semantic roles & 50–950 ramp

primary
#2B1E8E
secondary
#AFBC4C
accent
#E840D5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #2B1E8E

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

Preview Lab → · Contrast checker → · Palette generator →

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