#2D2D8B#2D2D8B

#2D2D8B is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.3% C 0.152 H 275.8°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#2D2D8B
RGBrgb(45, 45, 139)
HSLhsl(240, 51%, 36%)
HSVhsv(240, 68%, 55%)
CMYKcmyk(67.6%, 67.6%, 0%, 45.5%)
CIE-LABlab(24.63, 31.19, -52.24)
CIE-LCHlch(24.63, 60.84, 300.83°)
OKLaboklab(36.32% 0.0153 -0.1507)
OKLCHoklch(36.32% 0.152 275.8)
XYZxyz(6.6792, 4.2982, 24.8987)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2D8B #8B8B2D
analogous
#2D5C8B #2D2D8B #5C2D8B
triadic
#2D2D8B #8B2D2D #2D8B2D
tetradic
#2D2D8B #8B2D5C #8B8B2D #2D8B5C
square
#2D2D8B #8B2D5C #8B8B2D #2D8B5C
split-complementary
#2D2D8B #8B5C2D #5C8B2D
monochromatic
#0F0F2F #1E1E5D #2D2D8B #3C3CB9 #6565CD

Accessibility & contrast

On white

11.29
#2D2D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2D2D8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2D8B
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2D8B#FFFFFF#000000##FFFFFF
##2D2D8B1.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8E
Deuteranopia (green-blind)
#003689
Tritanopia (blue-blind)
#004658
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2d2d8b;
/* rgb */ color: rgb(45, 45, 139);
/* oklch */ color: oklch(36.3% 0.152 275.8);
Tailwind
colors: {
  custom: {
    50: '#7366ae',
    500: '#2d2d8b',
    950: '#000000',
  },
}
SCSS
$custom: #2d2d8b;
$custom-light: #7366ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2d8b",
  "rgb": {
    "r": 45,
    "g": 45,
    "b": 139
  },
  "hsl": {
    "h": 240,
    "s": 51.087,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36319,
    "c": 0.15152,
    "h": 275.8
  },
  "luminance": 0.04299
}

Semantic roles & 50–950 ramp

primary
#2D2D8B
secondary
#B4B460
accent
#DB4DDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2D2D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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