#2D1E98#2D1E98

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

Color values

HEX#2D1E98
RGBrgb(45, 30, 152)
HSLhsl(247, 67%, 36%)
HSVhsv(247, 80%, 60%)
CMYKcmyk(70.4%, 80.3%, 0%, 40.4%)
CIE-LABlab(22.84, 44.28, -63.25)
CIE-LCHlch(22.84, 77.21, 305.00°)
OKLaboklab(35.44% 0.0222 -0.1828)
OKLCHoklch(35.44% 0.184 276.9)
XYZxyz(7.2121, 3.7528, 30.0440)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1E98 #89981E
analogous
#1E4C98 #2D1E98 #6A1E98
triadic
#2D1E98 #982D1E #1E982D
tetradic
#2D1E98 #981E4C #89981E #1E986A
square
#2D1E98 #981E4C #89981E #1E986A
split-complementary
#2D1E98 #986A1E #4C981E
monochromatic
#0F0A32 #1E1465 #2D1E98 #3C28CB #6453DD

Accessibility & contrast

On white

12.00
#2D1E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1E98
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1E98#FFFFFF#000000##FFFFFF
##2D1E981.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d1e98;
/* rgb */ color: rgb(45, 30, 152);
/* oklch */ color: oklch(35.4% 0.184 276.9);
Tailwind
colors: {
  custom: {
    50: '#775db8',
    500: '#2d1e98',
    950: '#000000',
  },
}
SCSS
$custom: #2d1e98;
$custom-light: #775db8;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1e98",
  "rgb": {
    "r": 45,
    "g": 30,
    "b": 152
  },
  "hsl": {
    "h": 247.377,
    "s": 67.033,
    "l": 35.686
  },
  "oklch": {
    "l": 0.3544,
    "c": 0.18412,
    "h": 276.9
  },
  "luminance": 0.03753
}

Semantic roles & 50–950 ramp

primary
#2D1E98
secondary
#B3C051
accent
#EA3ED5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2D1E98

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

Preview Lab → · Contrast checker → · Palette generator →

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