#2B1F88#2B1F88

#2B1F88 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.7% C 0.164 H 278.0°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#2B1F88
RGBrgb(43, 31, 136)
HSLhsl(247, 63%, 33%)
HSVhsv(247, 77%, 53%)
CMYKcmyk(68.4%, 77.2%, 0%, 46.7%)
CIE-LABlab(21.10, 38.40, -56.19)
CIE-LCHlch(21.10, 68.06, 304.35°)
OKLaboklab(33.66% 0.0229 -0.1623)
OKLCHoklch(33.66% 0.164 278)
XYZxyz(5.9287, 3.2706, 23.6066)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1F88 #7C881F
analogous
#1F4888 #2B1F88 #5F1F88
triadic
#2B1F88 #882B1F #1F882B
tetradic
#2B1F88 #881F48 #7C881F #1F885F
square
#2B1F88 #881F48 #7C881F #1F885F
split-complementary
#2B1F88 #885F1F #48881F
monochromatic
#0B0824 #1B1456 #2B1F88 #3B2ABA #5B4BD6

Accessibility & contrast

On white

12.69
#2B1F88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2B1F88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1F88
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1F88#FFFFFF#000000##FFFFFF
##2B1F881.0012.691.6512.69
#FFFFFF12.691.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378B
Deuteranopia (green-blind)
#002E86
Tritanopia (blue-blind)
#003D52
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2b1f88;
/* rgb */ color: rgb(43, 31, 136);
/* oklch */ color: oklch(33.7% 0.164 278.0);
Tailwind
colors: {
  custom: {
    50: '#725dac',
    500: '#2b1f88',
    950: '#000000',
  },
}
SCSS
$custom: #2b1f88;
$custom-light: #725dac;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1f88",
  "rgb": {
    "r": 43,
    "g": 31,
    "b": 136
  },
  "hsl": {
    "h": 246.857,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33656,
    "c": 0.16391,
    "h": 278
  },
  "luminance": 0.03271
}

Semantic roles & 50–950 ramp

primary
#2B1F88
secondary
#ACB94A
accent
#E642D3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2B1F88

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

Preview Lab → · Contrast checker → · Palette generator →

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