#2B1F93#2B1F93

#2B1F93 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.9% C 0.178 H 276.5°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#2B1F93
RGBrgb(43, 31, 147)
HSLhsl(246, 65%, 35%)
HSVhsv(246, 79%, 58%)
CMYKcmyk(70.7%, 78.9%, 0%, 42.4%)
CIE-LABlab(22.30, 41.98, -61.05)
CIE-LCHlch(22.30, 74.09, 304.51°)
OKLaboklab(34.86% 0.0202 -0.1765)
OKLCHoklch(34.86% 0.178 276.5)
XYZxyz(6.7510, 3.5995, 27.9371)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1F93 #87931F
analogous
#1F4D93 #2B1F93 #651F93
triadic
#2B1F93 #932B1F #1F932B
tetradic
#2B1F93 #931F4D #87931F #1F9365
square
#2B1F93 #931F4D #87931F #1F9365
split-complementary
#2B1F93 #93651F #4D931F
monochromatic
#0D0A2E #1C1460 #2B1F93 #3A2AC6 #6052DA

Accessibility & contrast

On white

12.21
#2B1F93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2B1F93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1F93
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1F93#FFFFFF#000000##FFFFFF
##2B1F931.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A96
Deuteranopia (green-blind)
#003091
Tritanopia (blue-blind)
#004258
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2b1f93;
/* rgb */ color: rgb(43, 31, 147);
/* oklch */ color: oklch(34.9% 0.178 276.5);
Tailwind
colors: {
  custom: {
    50: '#755db4',
    500: '#2b1f93',
    950: '#000000',
  },
}
SCSS
$custom: #2b1f93;
$custom-light: #755db4;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1f93",
  "rgb": {
    "r": 43,
    "g": 31,
    "b": 147
  },
  "hsl": {
    "h": 246.207,
    "s": 65.169,
    "l": 34.902
  },
  "oklch": {
    "l": 0.3486,
    "c": 0.17761,
    "h": 276.5
  },
  "luminance": 0.036
}

Semantic roles & 50–950 ramp

primary
#2B1F93
secondary
#B2BE50
accent
#E840D7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2B1F93

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

Preview Lab → · Contrast checker → · Palette generator →

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