#2B1DA8#2B1DA8

#2B1DA8 is a dark, highly saturated blue. Relative luminance 0.042; OKLCH L 37.0% C 0.204 H 274.3°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#2B1DA8
RGBrgb(43, 29, 168)
HSLhsl(246, 71%, 39%)
HSVhsv(246, 83%, 66%)
CMYKcmyk(74.4%, 82.7%, 0%, 34.1%)
CIE-LABlab(24.38, 49.55, -70.45)
CIE-LCHlch(24.38, 86.13, 305.12°)
OKLaboklab(37.02% 0.0154 -0.2037)
OKLCHoklch(37.02% 0.204 274.3)
XYZxyz(8.5012, 4.2186, 37.4044)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1DA8 #9AA81D
analogous
#1D54A8 #2B1DA8 #701DA8
triadic
#2B1DA8 #A82B1D #1DA82B
tetradic
#2B1DA8 #A81D54 #9AA81D #1DA870
square
#2B1DA8 #A81D54 #9AA81D #1DA870
split-complementary
#2B1DA8 #A8701D #54A81D
monochromatic
#100B40 #1E1474 #2B1DA8 #3A28DA #6A5CE3

Accessibility & contrast

On white

11.39
#2B1DA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2B1DA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1DA8
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1DA8#FFFFFF#000000##FFFFFF
##2B1DA81.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040AC
Deuteranopia (green-blind)
#0033A6
Tritanopia (blue-blind)
#004964
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2b1da8;
/* rgb */ color: rgb(43, 29, 168);
/* oklch */ color: oklch(37.0% 0.204 274.3);
Tailwind
colors: {
  custom: {
    50: '#7a5ec3',
    500: '#2b1da8',
    950: '#000000',
  },
}
SCSS
$custom: #2b1da8;
$custom-light: #7a5ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1da8",
  "rgb": {
    "r": 43,
    "g": 29,
    "b": 168
  },
  "hsl": {
    "h": 246.043,
    "s": 70.558,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37015,
    "c": 0.2043,
    "h": 274.3
  },
  "luminance": 0.04219
}

Semantic roles & 50–950 ramp

primary
#2B1DA8
secondary
#BCC75A
accent
#ED3ADB
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2B1DA8

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

Preview Lab → · Contrast checker → · Palette generator →

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