#2B1E70#2B1E70

#2B1E70 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.0% C 0.134 H 282.5°. Best body text is #FFFFFF at 13.79:1 contrast (WCAG AA passes).

Color values

HEX#2B1E70
RGBrgb(43, 30, 112)
HSLhsl(250, 58%, 28%)
HSVhsv(250, 73%, 44%)
CMYKcmyk(61.6%, 73.2%, 0%, 56.1%)
CIE-LABlab(18.42, 30.97, -45.31)
CIE-LCHlch(18.42, 54.89, 304.35°)
OKLaboklab(31.01% 0.029 -0.1305)
OKLCHoklch(31.01% 0.134 282.5)
XYZxyz(4.3843, 2.6117, 15.5992)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1E70 #63701E
analogous
#1E3A70 #2B1E70 #541E70
triadic
#2B1E70 #702B1E #1E702B
tetradic
#2B1E70 #701E3A #63701E #1E7054
square
#2B1E70 #701E3A #63701E #1E7054
split-complementary
#2B1E70 #70541E #3A701E
monochromatic
#090618 #181140 #2B1E70 #3E2BA0 #543DCB

Accessibility & contrast

On white

13.79
#2B1E70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2B1E70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1E70
13.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1E70#FFFFFF#000000##FFFFFF
##2B1E701.0013.791.5213.79
#FFFFFF13.791.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003072
Deuteranopia (green-blind)
#002A6E
Tritanopia (blue-blind)
#013444
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2b1e70;
/* rgb */ color: rgb(43, 30, 112);
/* oklch */ color: oklch(31.0% 0.134 282.5);
Tailwind
colors: {
  custom: {
    50: '#6d5b9a',
    500: '#2b1e70',
    950: '#000000',
  },
}
SCSS
$custom: #2b1e70;
$custom-light: #6d5b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1e70",
  "rgb": {
    "r": 43,
    "g": 30,
    "b": 112
  },
  "hsl": {
    "h": 249.512,
    "s": 57.746,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31007,
    "c": 0.13369,
    "h": 282.5
  },
  "luminance": 0.02612
}

Semantic roles & 50–950 ramp

primary
#2B1E70
secondary
#95A446
accent
#E147C9
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #2B1E70

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

Preview Lab → · Contrast checker → · Palette generator →

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