#2D1C98#2D1C98

#2D1C98 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.2% C 0.186 H 277.1°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#2D1C98
RGBrgb(45, 28, 152)
HSLhsl(248, 69%, 35%)
HSVhsv(248, 82%, 60%)
CMYKcmyk(70.4%, 81.6%, 0%, 40.4%)
CIE-LABlab(22.50, 45.27, -63.81)
CIE-LCHlch(22.50, 78.24, 305.35°)
OKLaboklab(35.2% 0.0231 -0.1844)
OKLCHoklch(35.2% 0.186 277.1)
XYZxyz(7.1631, 3.6547, 30.0276)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1C98 #87981C
analogous
#1C4998 #2D1C98 #6B1C98
triadic
#2D1C98 #982D1C #1C982D
tetradic
#2D1C98 #981C49 #87981C #1C986B
square
#2D1C98 #981C49 #87981C #1C986B
split-complementary
#2D1C98 #986B1C #49981C
monochromatic
#0E0931 #1E1264 #2D1C98 #3C26CC #6350DF

Accessibility & contrast

On white

12.13
#2D1C98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D1C98
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1C98#FFFFFF#000000##FFFFFF
##2D1C981.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d1c98;
/* rgb */ color: rgb(45, 28, 152);
/* oklch */ color: oklch(35.2% 0.186 277.1);
Tailwind
colors: {
  custom: {
    50: '#775cb8',
    500: '#2d1c98',
    950: '#000000',
  },
}
SCSS
$custom: #2d1c98;
$custom-light: #775cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1c98",
  "rgb": {
    "r": 45,
    "g": 28,
    "b": 152
  },
  "hsl": {
    "h": 248.226,
    "s": 68.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35203,
    "c": 0.18583,
    "h": 277.1
  },
  "luminance": 0.03655
}

Semantic roles & 50–950 ramp

primary
#2D1C98
secondary
#B2C14E
accent
#EC3CD4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2D1C98

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

Preview Lab → · Contrast checker → · Palette generator →

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