#2B1F9D#2B1F9D

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

Color values

HEX#2B1F9D
RGBrgb(43, 31, 157)
HSLhsl(246, 67%, 37%)
HSVhsv(246, 80%, 62%)
CMYKcmyk(72.6%, 80.3%, 0%, 38.4%)
CIE-LABlab(23.43, 45.17, -65.34)
CIE-LCHlch(23.43, 79.43, 304.66°)
OKLaboklab(35.98% 0.0176 -0.1889)
OKLCHoklch(35.98% 0.19 275.3)
XYZxyz(7.5700, 3.9272, 32.2508)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1F9D #919D1F
analogous
#1F529D #2B1F9D #6A1F9D
triadic
#2B1F9D #9D2B1F #1F9D2B
tetradic
#2B1F9D #9D1F52 #919D1F #1F9D6A
square
#2B1F9D #9D1F52 #919D1F #1F9D6A
split-complementary
#2B1F9D #9D6A1F #529D1F
monochromatic
#0F0B37 #1D156A #2B1F9D #3929D0 #6558DE

Accessibility & contrast

On white

11.76
#2B1F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2B1F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1F9D
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1F9D#FFFFFF#000000##FFFFFF
##2B1F9D1.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA0
Deuteranopia (green-blind)
#00329B
Tritanopia (blue-blind)
#00465E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2b1f9d;
/* rgb */ color: rgb(43, 31, 157);
/* oklch */ color: oklch(36.0% 0.190 275.3);
Tailwind
colors: {
  custom: {
    50: '#775ebb',
    500: '#2b1f9d',
    950: '#000000',
  },
}
SCSS
$custom: #2b1f9d;
$custom-light: #775ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1f9d",
  "rgb": {
    "r": 43,
    "g": 31,
    "b": 157
  },
  "hsl": {
    "h": 245.714,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.35981,
    "c": 0.18974,
    "h": 275.3
  },
  "luminance": 0.03928
}

Semantic roles & 50–950 ramp

primary
#2B1F9D
secondary
#B8C256
accent
#EA3EDA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2B1F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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