#2B1F91#2B1F91

#2B1F91 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.6% C 0.175 H 276.8°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#2B1F91
RGBrgb(43, 31, 145)
HSLhsl(246, 65%, 35%)
HSVhsv(246, 79%, 57%)
CMYKcmyk(70.3%, 78.6%, 0%, 43.1%)
CIE-LABlab(22.08, 41.33, -60.18)
CIE-LCHlch(22.08, 73.01, 304.48°)
OKLaboklab(34.64% 0.0207 -0.1739)
OKLCHoklch(34.64% 0.175 276.8)
XYZxyz(6.5954, 3.5373, 27.1178)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1F91 #85911F
analogous
#1F4C91 #2B1F91 #641F91
triadic
#2B1F91 #912B1F #1F912B
tetradic
#2B1F91 #911F4C #85911F #1F9164
square
#2B1F91 #911F4C #85911F #1F9164
split-complementary
#2B1F91 #91641F #4C911F
monochromatic
#0D092C #1C145F #2B1F91 #3A2AC3 #5F51DA

Accessibility & contrast

On white

12.30
#2B1F91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2B1F91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1F91
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1F91#FFFFFF#000000##FFFFFF
##2B1F911.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A94
Deuteranopia (green-blind)
#00308F
Tritanopia (blue-blind)
#004157
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2b1f91;
/* rgb */ color: rgb(43, 31, 145);
/* oklch */ color: oklch(34.6% 0.175 276.8);
Tailwind
colors: {
  custom: {
    50: '#745db2',
    500: '#2b1f91',
    950: '#000000',
  },
}
SCSS
$custom: #2b1f91;
$custom-light: #745db2;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1f91",
  "rgb": {
    "r": 43,
    "g": 31,
    "b": 145
  },
  "hsl": {
    "h": 246.316,
    "s": 64.773,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34639,
    "c": 0.17515,
    "h": 276.8
  },
  "luminance": 0.03538
}

Semantic roles & 50–950 ramp

primary
#2B1F91
secondary
#B1BD4F
accent
#E840D6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2B1F91

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

Preview Lab → · Contrast checker → · Palette generator →

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