#2B1F8D#2B1F8D

#2B1F8D is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.2% C 0.170 H 277.3°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#2B1F8D
RGBrgb(43, 31, 141)
HSLhsl(247, 64%, 34%)
HSVhsv(247, 78%, 55%)
CMYKcmyk(69.5%, 78%, 0%, 44.7%)
CIE-LABlab(21.64, 40.03, -58.42)
CIE-LCHlch(21.64, 70.82, 304.42°)
OKLaboklab(34.2% 0.0217 -0.1688)
OKLCHoklch(34.2% 0.17 277.3)
XYZxyz(6.2924, 3.4161, 25.5219)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1F8D #818D1F
analogous
#1F4A8D #2B1F8D #621F8D
triadic
#2B1F8D #8D2B1F #1F8D2B
tetradic
#2B1F8D #8D1F4A #818D1F #1F8D62
square
#2B1F8D #8D1F4A #818D1F #1F8D62
split-complementary
#2B1F8D #8D621F #4A8D1F
monochromatic
#0C0929 #1C145B #2B1F8D #3A2ABF #5D4ED8

Accessibility & contrast

On white

12.47
#2B1F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2B1F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1F8D
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1F8D#FFFFFF#000000##FFFFFF
##2B1F8D1.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003890
Deuteranopia (green-blind)
#002F8B
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2b1f8d;
/* rgb */ color: rgb(43, 31, 141);
/* oklch */ color: oklch(34.2% 0.170 277.3);
Tailwind
colors: {
  custom: {
    50: '#745daf',
    500: '#2b1f8d',
    950: '#000000',
  },
}
SCSS
$custom: #2b1f8d;
$custom-light: #745daf;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1f8d",
  "rgb": {
    "r": 43,
    "g": 31,
    "b": 141
  },
  "hsl": {
    "h": 246.545,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34199,
    "c": 0.17019,
    "h": 277.3
  },
  "luminance": 0.03417
}

Semantic roles & 50–950 ramp

primary
#2B1F8D
secondary
#AFBB4D
accent
#E741D5
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #2B1F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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