#2D2D8D#2D2D8D

#2D2D8D is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.5% C 0.154 H 275.6°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#2D2D8D
RGBrgb(45, 45, 141)
HSLhsl(240, 52%, 36%)
HSVhsv(240, 68%, 55%)
CMYKcmyk(68.1%, 68.1%, 0%, 44.7%)
CIE-LABlab(24.82, 31.90, -53.18)
CIE-LCHlch(24.82, 62.02, 300.95°)
OKLaboklab(36.51% 0.015 -0.1535)
OKLCHoklch(36.51% 0.154 275.6)
XYZxyz(6.8267, 4.3571, 25.6754)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2D8D #8D8D2D
analogous
#2D5D8D #2D2D8D #5D2D8D
triadic
#2D2D8D #8D2D2D #2D8D2D
tetradic
#2D2D8D #8D2D5D #8D8D2D #2D8D5D
square
#2D2D8D #8D2D5D #8D8D2D #2D8D5D
split-complementary
#2D2D8D #8D5D2D #5D8D2D
monochromatic
#0F0F30 #1E1E5F #2D2D8D #3C3CBB #6666CE

Accessibility & contrast

On white

11.22
#2D2D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2D2D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2D8D
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2D8D#FFFFFF#000000##FFFFFF
##2D2D8D1.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F90
Deuteranopia (green-blind)
#00378B
Tritanopia (blue-blind)
#004659
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2d2d8d;
/* rgb */ color: rgb(45, 45, 141);
/* oklch */ color: oklch(36.5% 0.154 275.6);
Tailwind
colors: {
  custom: {
    50: '#7366af',
    500: '#2d2d8d',
    950: '#000000',
  },
}
SCSS
$custom: #2d2d8d;
$custom-light: #7366af;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2d8d",
  "rgb": {
    "r": 45,
    "g": 45,
    "b": 141
  },
  "hsl": {
    "h": 240,
    "s": 51.613,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36511,
    "c": 0.15424,
    "h": 275.6
  },
  "luminance": 0.04358
}

Semantic roles & 50–950 ramp

primary
#2D2D8D
secondary
#B5B561
accent
#DB4DDB
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2D2D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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