#2B1E8F#2B1E8F

#2B1E8F is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.3% C 0.174 H 277.2°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#2B1E8F
RGBrgb(43, 30, 143)
HSLhsl(247, 65%, 34%)
HSVhsv(247, 79%, 56%)
CMYKcmyk(69.9%, 79%, 0%, 43.9%)
CIE-LABlab(21.67, 41.22, -59.61)
CIE-LCHlch(21.67, 72.48, 304.66°)
OKLaboklab(34.29% 0.0217 -0.1723)
OKLCHoklch(34.29% 0.174 277.2)
XYZxyz(6.4168, 3.4247, 26.3042)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1E8F #828F1E
analogous
#1E4A8F #2B1E8F #641E8F
triadic
#2B1E8F #8F2B1E #1E8F2B
tetradic
#2B1E8F #8F1E4A #828F1E #1E8F64
square
#2B1E8F #8F1E4A #828F1E #1E8F64
split-complementary
#2B1E8F #8F641E #4A8F1E
monochromatic
#0D092A #1C135C #2B1E8F #3A29C2 #5E4EDA

Accessibility & contrast

On white

12.46
#2B1E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2B1E8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1E8F
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1E8F#FFFFFF#000000##FFFFFF
##2B1E8F1.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003892
Deuteranopia (green-blind)
#002F8D
Tritanopia (blue-blind)
#004056
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2b1e8f;
/* rgb */ color: rgb(43, 30, 143);
/* oklch */ color: oklch(34.3% 0.174 277.2);
Tailwind
colors: {
  custom: {
    50: '#745db1',
    500: '#2b1e8f',
    950: '#000000',
  },
}
SCSS
$custom: #2b1e8f;
$custom-light: #745db1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1e8f",
  "rgb": {
    "r": 43,
    "g": 30,
    "b": 143
  },
  "hsl": {
    "h": 246.903,
    "s": 65.318,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34287,
    "c": 0.17363,
    "h": 277.2
  },
  "luminance": 0.03425
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2B1E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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