#2B1F94#2B1F94

#2B1F94 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.0% C 0.179 H 276.4°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#2B1F94
RGBrgb(43, 31, 148)
HSLhsl(246, 65%, 35%)
HSVhsv(246, 79%, 58%)
CMYKcmyk(70.9%, 79.1%, 0%, 42%)
CIE-LABlab(22.41, 42.30, -61.49)
CIE-LCHlch(22.41, 74.63, 304.53°)
OKLaboklab(34.97% 0.02 -0.1777)
OKLCHoklch(34.97% 0.179 276.4)
XYZxyz(6.8298, 3.6311, 28.3522)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1F94 #88941F
analogous
#1F4D94 #2B1F94 #661F94
triadic
#2B1F94 #942B1F #1F942B
tetradic
#2B1F94 #941F4D #88941F #1F9466
square
#2B1F94 #941F4D #88941F #1F9466
split-complementary
#2B1F94 #94661F #4D941F
monochromatic
#0E0A2F #1C1461 #2B1F94 #3A2AC7 #6153DB

Accessibility & contrast

On white

12.16
#2B1F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2B1F94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1F94
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1F94#FFFFFF#000000##FFFFFF
##2B1F941.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A97
Deuteranopia (green-blind)
#003092
Tritanopia (blue-blind)
#004259
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2b1f94;
/* rgb */ color: rgb(43, 31, 148);
/* oklch */ color: oklch(35.0% 0.179 276.4);
Tailwind
colors: {
  custom: {
    50: '#755eb5',
    500: '#2b1f94',
    950: '#000000',
  },
}
SCSS
$custom: #2b1f94;
$custom-light: #755eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1f94",
  "rgb": {
    "r": 43,
    "g": 31,
    "b": 148
  },
  "hsl": {
    "h": 246.154,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.34971,
    "c": 0.17884,
    "h": 276.4
  },
  "luminance": 0.03632
}

Semantic roles & 50–950 ramp

primary
#2B1F94
secondary
#B3BE51
accent
#E83FD7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2B1F94

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

Preview Lab → · Contrast checker → · Palette generator →

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