#2B1F97#2B1F97

#2B1F97 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.3% C 0.182 H 276.0°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#2B1F97
RGBrgb(43, 31, 151)
HSLhsl(246, 66%, 36%)
HSVhsv(246, 79%, 59%)
CMYKcmyk(71.5%, 79.5%, 0%, 40.8%)
CIE-LABlab(22.75, 43.26, -62.78)
CIE-LCHlch(22.75, 76.24, 304.57°)
OKLaboklab(35.31% 0.0192 -0.1815)
OKLCHoklch(35.31% 0.183 276)
XYZxyz(7.0703, 3.7273, 29.6190)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1F97 #8B971F
analogous
#1F4F97 #2B1F97 #671F97
triadic
#2B1F97 #972B1F #1F972B
tetradic
#2B1F97 #971F4F #8B971F #1F9767
square
#2B1F97 #971F4F #8B971F #1F9767
split-complementary
#2B1F97 #97671F #4F971F
monochromatic
#0E0A31 #1D1564 #2B1F97 #3929CA #6254DC

Accessibility & contrast

On white

12.03
#2B1F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2B1F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1F97
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1F97#FFFFFF#000000##FFFFFF
##2B1F971.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9A
Deuteranopia (green-blind)
#003195
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2b1f97;
/* rgb */ color: rgb(43, 31, 151);
/* oklch */ color: oklch(35.3% 0.182 276.0);
Tailwind
colors: {
  custom: {
    50: '#765eb7',
    500: '#2b1f97',
    950: '#000000',
  },
}
SCSS
$custom: #2b1f97;
$custom-light: #765eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1f97",
  "rgb": {
    "r": 43,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 246,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35306,
    "c": 0.1825,
    "h": 276
  },
  "luminance": 0.03728
}

Semantic roles & 50–950 ramp

primary
#2B1F97
secondary
#B5BF52
accent
#E93FD8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2B1F97

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

Preview Lab → · Contrast checker → · Palette generator →

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