#2B1F8A#2B1F8A

#2B1F8A is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.9% C 0.166 H 277.8°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#2B1F8A
RGBrgb(43, 31, 138)
HSLhsl(247, 63%, 33%)
HSVhsv(247, 78%, 54%)
CMYKcmyk(68.8%, 77.5%, 0%, 45.9%)
CIE-LABlab(21.31, 39.05, -57.09)
CIE-LCHlch(21.31, 69.17, 304.38°)
OKLaboklab(33.87% 0.0225 -0.1649)
OKLCHoklch(33.87% 0.166 277.8)
XYZxyz(6.0722, 3.3280, 24.3622)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1F8A #7E8A1F
analogous
#1F488A #2B1F8A #601F8A
triadic
#2B1F8A #8A2B1F #1F8A2B
tetradic
#2B1F8A #8A1F48 #7E8A1F #1F8A60
square
#2B1F8A #8A1F48 #7E8A1F #1F8A60
split-complementary
#2B1F8A #8A601F #488A1F
monochromatic
#0C0926 #1B1458 #2B1F8A #3B2ABC #5C4CD7

Accessibility & contrast

On white

12.61
#2B1F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2B1F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1F8A
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1F8A#FFFFFF#000000##FFFFFF
##2B1F8A1.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378D
Deuteranopia (green-blind)
#002F88
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2b1f8a;
/* rgb */ color: rgb(43, 31, 138);
/* oklch */ color: oklch(33.9% 0.166 277.8);
Tailwind
colors: {
  custom: {
    50: '#735dad',
    500: '#2b1f8a',
    950: '#000000',
  },
}
SCSS
$custom: #2b1f8a;
$custom-light: #735dad;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1f8a",
  "rgb": {
    "r": 43,
    "g": 31,
    "b": 138
  },
  "hsl": {
    "h": 246.729,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33873,
    "c": 0.16643,
    "h": 277.8
  },
  "luminance": 0.03329
}

Semantic roles & 50–950 ramp

primary
#2B1F8A
secondary
#ADBA4B
accent
#E641D4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2B1F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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