#2B1E7E#2B1E7E

#2B1E7E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.4% C 0.152 H 279.8°. Best body text is #FFFFFF at 13.21:1 contrast (WCAG AA passes).

Color values

HEX#2B1E7E
RGBrgb(43, 30, 126)
HSLhsl(248, 62%, 31%)
HSVhsv(248, 76%, 49%)
CMYKcmyk(65.9%, 76.2%, 0%, 50.6%)
CIE-LABlab(19.83, 35.66, -51.96)
CIE-LCHlch(19.83, 63.02, 304.46°)
OKLaboklab(32.45% 0.026 -0.1499)
OKLCHoklch(32.45% 0.152 279.8)
XYZxyz(5.2252, 2.9481, 20.0283)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1E7E #717E1E
analogous
#1E417E #2B1E7E #5B1E7E
triadic
#2B1E7E #7E2B1E #1E7E2B
tetradic
#2B1E7E #7E1E41 #717E1E #1E7E5B
square
#2B1E7E #7E1E41 #717E1E #1E7E5B
split-complementary
#2B1E7E #7E5B1E #417E1E
monochromatic
#09061B #1A124D #2B1E7E #3C2AAF #5744D2

Accessibility & contrast

On white

13.21
#2B1E7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2B1E7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1E7E
13.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1E7E#FFFFFF#000000##FFFFFF
##2B1E7E1.0013.211.5913.21
#FFFFFF13.211.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#002C7C
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2b1e7e;
/* rgb */ color: rgb(43, 30, 126);
/* oklch */ color: oklch(32.4% 0.152 279.8);
Tailwind
colors: {
  custom: {
    50: '#705ca4',
    500: '#2b1e7e',
    950: '#000000',
  },
}
SCSS
$custom: #2b1e7e;
$custom-light: #705ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1e7e",
  "rgb": {
    "r": 43,
    "g": 30,
    "b": 126
  },
  "hsl": {
    "h": 248.125,
    "s": 61.538,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32447,
    "c": 0.15218,
    "h": 279.8
  },
  "luminance": 0.02948
}

Semantic roles & 50–950 ramp

primary
#2B1E7E
secondary
#A3B147
accent
#E543CF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2B1E7E

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

Preview Lab → · Contrast checker → · Palette generator →

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