#2B1F92#2B1F92

#2B1F92 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.7% C 0.176 H 276.7°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#2B1F92
RGBrgb(43, 31, 146)
HSLhsl(246, 65%, 35%)
HSVhsv(246, 79%, 57%)
CMYKcmyk(70.5%, 78.8%, 0%, 42.7%)
CIE-LABlab(22.19, 41.66, -60.62)
CIE-LCHlch(22.19, 73.55, 304.50°)
OKLaboklab(34.75% 0.0205 -0.1752)
OKLCHoklch(34.75% 0.176 276.7)
XYZxyz(6.6729, 3.5683, 27.5256)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1F92 #86921F
analogous
#1F4C92 #2B1F92 #651F92
triadic
#2B1F92 #922B1F #1F922B
tetradic
#2B1F92 #921F4C #86921F #1F9265
square
#2B1F92 #921F4C #86921F #1F9265
split-complementary
#2B1F92 #92651F #4C921F
monochromatic
#0D0A2D #1C1460 #2B1F92 #3A2AC4 #6051DA

Accessibility & contrast

On white

12.25
#2B1F92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1F92
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1F92#FFFFFF#000000##FFFFFF
##2B1F921.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A95
Deuteranopia (green-blind)
#003090
Tritanopia (blue-blind)
#004158
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2b1f92;
/* rgb */ color: rgb(43, 31, 146);
/* oklch */ color: oklch(34.7% 0.176 276.7);
Tailwind
colors: {
  custom: {
    50: '#755db3',
    500: '#2b1f92',
    950: '#000000',
  },
}
SCSS
$custom: #2b1f92;
$custom-light: #755db3;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1f92",
  "rgb": {
    "r": 43,
    "g": 31,
    "b": 146
  },
  "hsl": {
    "h": 246.261,
    "s": 64.972,
    "l": 34.706
  },
  "oklch": {
    "l": 0.34749,
    "c": 0.17638,
    "h": 276.7
  },
  "luminance": 0.03569
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2B1F92

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

Preview Lab → · Contrast checker → · Palette generator →

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