#2B1F95#2B1F95

#2B1F95 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.1% C 0.180 H 276.3°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#2B1F95
RGBrgb(43, 31, 149)
HSLhsl(246, 66%, 35%)
HSVhsv(246, 79%, 58%)
CMYKcmyk(71.1%, 79.2%, 0%, 41.6%)
CIE-LABlab(22.52, 42.62, -61.92)
CIE-LCHlch(22.52, 75.17, 304.54°)
OKLaboklab(35.08% 0.0197 -0.179)
OKLCHoklch(35.08% 0.18 276.3)
XYZxyz(6.9093, 3.6628, 28.7708)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1F95 #89951F
analogous
#1F4E95 #2B1F95 #661F95
triadic
#2B1F95 #952B1F #1F952B
tetradic
#2B1F95 #951F4E #89951F #1F9566
square
#2B1F95 #951F4E #89951F #1F9566
split-complementary
#2B1F95 #95661F #4E951F
monochromatic
#0E0A30 #1C1462 #2B1F95 #3A2AC8 #6153DB

Accessibility & contrast

On white

12.12
#2B1F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1F95
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1F95#FFFFFF#000000##FFFFFF
##2B1F951.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b1f95;
/* rgb */ color: rgb(43, 31, 149);
/* oklch */ color: oklch(35.1% 0.180 276.3);
Tailwind
colors: {
  custom: {
    50: '#755eb5',
    500: '#2b1f95',
    950: '#000000',
  },
}
SCSS
$custom: #2b1f95;
$custom-light: #755eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1f95",
  "rgb": {
    "r": 43,
    "g": 31,
    "b": 149
  },
  "hsl": {
    "h": 246.102,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35082,
    "c": 0.18006,
    "h": 276.3
  },
  "luminance": 0.03663
}

Semantic roles & 50–950 ramp

primary
#2B1F95
secondary
#B3BF51
accent
#E93FD7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2B1F95

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

Preview Lab → · Contrast checker → · Palette generator →

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