#2B1D9F#2B1D9F

#2B1D9F is a dark, vivid blue. Relative luminance 0.039; OKLCH L 36.0% C 0.194 H 275.3°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#2B1D9F
RGBrgb(43, 29, 159)
HSLhsl(246, 69%, 37%)
HSVhsv(246, 82%, 62%)
CMYKcmyk(73%, 81.8%, 0%, 37.6%)
CIE-LABlab(23.32, 46.78, -66.74)
CIE-LCHlch(23.32, 81.50, 305.03°)
OKLaboklab(35.97% 0.0179 -0.193)
OKLCHoklch(35.97% 0.194 275.3)
XYZxyz(7.6916, 3.8948, 33.1406)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1D9F #919F1D
analogous
#1D509F #2B1D9F #6C1D9F
triadic
#2B1D9F #9F2B1D #1D9F2B
tetradic
#2B1D9F #9F1D50 #919F1D #1D9F6C
square
#2B1D9F #9F1D50 #919F1D #1D9F6C
split-complementary
#2B1D9F #9F6C1D #509F1D
monochromatic
#0F0A37 #1D146B #2B1D9F #3926D3 #6556E0

Accessibility & contrast

On white

11.80
#2B1D9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2B1D9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1D9F
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1D9F#FFFFFF#000000##FFFFFF
##2B1D9F1.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA3
Deuteranopia (green-blind)
#00329D
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2b1d9f;
/* rgb */ color: rgb(43, 29, 159);
/* oklch */ color: oklch(36.0% 0.194 275.3);
Tailwind
colors: {
  custom: {
    50: '#785dbd',
    500: '#2b1d9f',
    950: '#000000',
  },
}
SCSS
$custom: #2b1d9f;
$custom-light: #785dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1d9f",
  "rgb": {
    "r": 43,
    "g": 29,
    "b": 159
  },
  "hsl": {
    "h": 246.462,
    "s": 69.149,
    "l": 36.863
  },
  "oklch": {
    "l": 0.35973,
    "c": 0.19379,
    "h": 275.3
  },
  "luminance": 0.03896
}

Semantic roles & 50–950 ramp

primary
#2B1D9F
secondary
#B8C454
accent
#EC3CD9
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2B1D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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