#2B1D7F#2B1D7F

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

Color values

HEX#2B1D7F
RGBrgb(43, 29, 127)
HSLhsl(249, 63%, 31%)
HSVhsv(249, 77%, 50%)
CMYKcmyk(66.1%, 77.2%, 0%, 50.2%)
CIE-LABlab(19.74, 36.56, -52.75)
CIE-LCHlch(19.74, 64.18, 304.72°)
OKLaboklab(32.41% 0.0264 -0.1523)
OKLCHoklch(32.41% 0.155 279.8)
XYZxyz(5.2652, 2.9242, 20.3615)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1D7F #717F1D
analogous
#1D407F #2B1D7F #5C1D7F
triadic
#2B1D7F #7F2B1D #1D7F2B
tetradic
#2B1D7F #7F1D40 #717F1D #1D7F5C
square
#2B1D7F #7F1D40 #717F1D #1D7F5C
split-complementary
#2B1D7F #7F5C1D #407F1D
monochromatic
#09061B #1A124D #2B1D7F #3C28B1 #5742D4

Accessibility & contrast

On white

13.25
#2B1D7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1D7F
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1D7F#FFFFFF#000000##FFFFFF
##2B1D7F1.0013.251.5913.25
#FFFFFF13.251.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b1d7f;
/* rgb */ color: rgb(43, 29, 127);
/* oklch */ color: oklch(32.4% 0.155 279.8);
Tailwind
colors: {
  custom: {
    50: '#715ba5',
    500: '#2b1d7f',
    950: '#000000',
  },
}
SCSS
$custom: #2b1d7f;
$custom-light: #715ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1d7f",
  "rgb": {
    "r": 43,
    "g": 29,
    "b": 127
  },
  "hsl": {
    "h": 248.571,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.3241,
    "c": 0.15454,
    "h": 279.8
  },
  "luminance": 0.02925
}

Semantic roles & 50–950 ramp

primary
#2B1D7F
secondary
#A3B245
accent
#E642CE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2B1D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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