#2B1F98#2B1F98

#2B1F98 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.4% C 0.184 H 275.9°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#2B1F98
RGBrgb(43, 31, 152)
HSLhsl(246, 66%, 36%)
HSVhsv(246, 80%, 60%)
CMYKcmyk(71.7%, 79.6%, 0%, 40.4%)
CIE-LABlab(22.86, 43.58, -63.21)
CIE-LCHlch(22.86, 76.78, 304.59°)
OKLaboklab(35.42% 0.0189 -0.1827)
OKLCHoklch(35.42% 0.184 275.9)
XYZxyz(7.1519, 3.7599, 30.0485)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1F98 #8C981F
analogous
#1F5098 #2B1F98 #671F98
triadic
#2B1F98 #982B1F #1F982B
tetradic
#2B1F98 #981F50 #8C981F #1F9867
square
#2B1F98 #981F50 #8C981F #1F9867
split-complementary
#2B1F98 #98671F #50981F
monochromatic
#0E0A32 #1D1565 #2B1F98 #3929CB #6255DC

Accessibility & contrast

On white

11.98
#2B1F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1F98
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1F98#FFFFFF#000000##FFFFFF
##2B1F981.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9B
Deuteranopia (green-blind)
#003196
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2b1f98;
/* rgb */ color: rgb(43, 31, 152);
/* oklch */ color: oklch(35.4% 0.184 275.9);
Tailwind
colors: {
  custom: {
    50: '#765eb8',
    500: '#2b1f98',
    950: '#000000',
  },
}
SCSS
$custom: #2b1f98;
$custom-light: #765eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1f98",
  "rgb": {
    "r": 43,
    "g": 31,
    "b": 152
  },
  "hsl": {
    "h": 245.95,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35418,
    "c": 0.18372,
    "h": 275.9
  },
  "luminance": 0.03761
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2B1F98

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

Preview Lab → · Contrast checker → · Palette generator →

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