#2B1F89#2B1F89

#2B1F89 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.8% C 0.165 H 277.9°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#2B1F89
RGBrgb(43, 31, 137)
HSLhsl(247, 63%, 33%)
HSVhsv(247, 77%, 54%)
CMYKcmyk(68.6%, 77.4%, 0%, 46.3%)
CIE-LABlab(21.20, 38.72, -56.64)
CIE-LCHlch(21.20, 68.61, 304.36°)
OKLaboklab(33.76% 0.0227 -0.1636)
OKLCHoklch(33.76% 0.165 277.9)
XYZxyz(6.0001, 3.2992, 23.9827)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1F89 #7D891F
analogous
#1F4889 #2B1F89 #601F89
triadic
#2B1F89 #892B1F #1F892B
tetradic
#2B1F89 #891F48 #7D891F #1F8960
square
#2B1F89 #891F48 #7D891F #1F8960
split-complementary
#2B1F89 #89601F #48891F
monochromatic
#0C0825 #1B1457 #2B1F89 #3B2ABB #5C4CD6

Accessibility & contrast

On white

12.65
#2B1F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2B1F89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1F89
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1F89#FFFFFF#000000##FFFFFF
##2B1F891.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b1f89;
/* rgb */ color: rgb(43, 31, 137);
/* oklch */ color: oklch(33.8% 0.165 277.9);
Tailwind
colors: {
  custom: {
    50: '#735dad',
    500: '#2b1f89',
    950: '#000000',
  },
}
SCSS
$custom: #2b1f89;
$custom-light: #735dad;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1f89",
  "rgb": {
    "r": 43,
    "g": 31,
    "b": 137
  },
  "hsl": {
    "h": 246.792,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33764,
    "c": 0.16518,
    "h": 277.9
  },
  "luminance": 0.033
}

Semantic roles & 50–950 ramp

primary
#2B1F89
secondary
#ADB94B
accent
#E642D4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2B1F89

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

Preview Lab → · Contrast checker → · Palette generator →

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