#2D1D98#2D1D98

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

Color values

HEX#2D1D98
RGBrgb(45, 29, 152)
HSLhsl(248, 68%, 35%)
HSVhsv(248, 81%, 60%)
CMYKcmyk(70.4%, 80.9%, 0%, 40.4%)
CIE-LABlab(22.66, 44.78, -63.53)
CIE-LCHlch(22.66, 77.73, 305.18°)
OKLaboklab(35.32% 0.0227 -0.1836)
OKLCHoklch(35.32% 0.185 277)
XYZxyz(7.1872, 3.7030, 30.0357)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1D98 #88981D
analogous
#1D4A98 #2D1D98 #6A1D98
triadic
#2D1D98 #982D1D #1D982D
tetradic
#2D1D98 #981D4A #88981D #1D986A
square
#2D1D98 #981D4A #88981D #1D986A
split-complementary
#2D1D98 #986A1D #4A981D
monochromatic
#0F0931 #1E1365 #2D1D98 #3C27CB #6452DE

Accessibility & contrast

On white

12.06
#2D1D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2D1D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1D98
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1D98#FFFFFF#000000##FFFFFF
##2D1D981.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.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: #2d1d98;
/* rgb */ color: rgb(45, 29, 152);
/* oklch */ color: oklch(35.3% 0.185 277.0);
Tailwind
colors: {
  custom: {
    50: '#775db8',
    500: '#2d1d98',
    950: '#000000',
  },
}
SCSS
$custom: #2d1d98;
$custom-light: #775db8;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1d98",
  "rgb": {
    "r": 45,
    "g": 29,
    "b": 152
  },
  "hsl": {
    "h": 247.805,
    "s": 67.956,
    "l": 35.49
  },
  "oklch": {
    "l": 0.3532,
    "c": 0.18498,
    "h": 277
  },
  "luminance": 0.03704
}

Semantic roles & 50–950 ramp

primary
#2D1D98
secondary
#B2C150
accent
#EB3DD4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2D1D98

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

Preview Lab → · Contrast checker → · Palette generator →

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