#2B1F8E#2B1F8E

#2B1F8E is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.3% C 0.171 H 277.2°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#2B1F8E
RGBrgb(43, 31, 142)
HSLhsl(246, 64%, 34%)
HSVhsv(246, 78%, 56%)
CMYKcmyk(69.7%, 78.2%, 0%, 44.3%)
CIE-LABlab(21.75, 40.36, -58.86)
CIE-LCHlch(21.75, 71.37, 304.44°)
OKLaboklab(34.31% 0.0215 -0.1701)
OKLCHoklch(34.31% 0.171 277.2)
XYZxyz(6.3671, 3.4460, 25.9155)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1F8E #828E1F
analogous
#1F4B8E #2B1F8E #631F8E
triadic
#2B1F8E #8E2B1F #1F8E2B
tetradic
#2B1F8E #8E1F4B #828E1F #1F8E63
square
#2B1F8E #8E1F4B #828E1F #1F8E63
split-complementary
#2B1F8E #8E631F #4B8E1F
monochromatic
#0D092A #1C145C #2B1F8E #3A2AC0 #5E4FD9

Accessibility & contrast

On white

12.43
#2B1F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2B1F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1F8E
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1F8E#FFFFFF#000000##FFFFFF
##2B1F8E1.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003991
Deuteranopia (green-blind)
#002F8C
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2b1f8e;
/* rgb */ color: rgb(43, 31, 142);
/* oklch */ color: oklch(34.3% 0.171 277.2);
Tailwind
colors: {
  custom: {
    50: '#745db0',
    500: '#2b1f8e',
    950: '#000000',
  },
}
SCSS
$custom: #2b1f8e;
$custom-light: #745db0;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1f8e",
  "rgb": {
    "r": 43,
    "g": 31,
    "b": 142
  },
  "hsl": {
    "h": 246.486,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34309,
    "c": 0.17144,
    "h": 277.2
  },
  "luminance": 0.03447
}

Semantic roles & 50–950 ramp

primary
#2B1F8E
secondary
#B0BB4D
accent
#E741D5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #2B1F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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