#2D1B98#2D1B98

#2D1B98 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.1% C 0.187 H 277.3°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#2D1B98
RGBrgb(45, 27, 152)
HSLhsl(249, 70%, 35%)
HSVhsv(249, 82%, 60%)
CMYKcmyk(70.4%, 82.2%, 0%, 40.4%)
CIE-LABlab(22.33, 45.75, -64.08)
CIE-LCHlch(22.33, 78.74, 305.52°)
OKLaboklab(35.09% 0.0236 -0.1852)
OKLCHoklch(35.09% 0.187 277.3)
XYZxyz(7.1398, 3.6081, 30.0198)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1B98 #86981B
analogous
#1B4898 #2D1B98 #6B1B98
triadic
#2D1B98 #982D1B #1B982D
tetradic
#2D1B98 #981B48 #86981B #1B986B
square
#2D1B98 #981B48 #86981B #1B986B
split-complementary
#2D1B98 #986B1B #48981B
monochromatic
#0E0930 #1E1264 #2D1B98 #3C24CC #634EE0

Accessibility & contrast

On white

12.20
#2D1B98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1B98
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1B98#FFFFFF#000000##FFFFFF
##2D1B981.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A9B
Deuteranopia (green-blind)
#003096
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2d1b98;
/* rgb */ color: rgb(45, 27, 152);
/* oklch */ color: oklch(35.1% 0.187 277.3);
Tailwind
colors: {
  custom: {
    50: '#775cb8',
    500: '#2d1b98',
    950: '#000000',
  },
}
SCSS
$custom: #2d1b98;
$custom-light: #775cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1b98",
  "rgb": {
    "r": 45,
    "g": 27,
    "b": 152
  },
  "hsl": {
    "h": 248.64,
    "s": 69.832,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35089,
    "c": 0.18666,
    "h": 277.3
  },
  "luminance": 0.03609
}

Semantic roles & 50–950 ramp

primary
#2D1B98
secondary
#B1C24D
accent
#ED3BD3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2D1B98

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

Preview Lab → · Contrast checker → · Palette generator →

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