#2D2D8F#2D2D8F

#2D2D8F is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.7% C 0.157 H 275.4°. Best body text is #FFFFFF at 11.15:1 contrast (WCAG AA passes).

Color values

HEX#2D2D8F
RGBrgb(45, 45, 143)
HSLhsl(240, 52%, 37%)
HSVhsv(240, 69%, 56%)
CMYKcmyk(68.5%, 68.5%, 0%, 43.9%)
CIE-LABlab(25.01, 32.61, -54.12)
CIE-LCHlch(25.01, 63.18, 301.07°)
OKLaboklab(36.7% 0.0148 -0.1562)
OKLCHoklch(36.7% 0.157 275.4)
XYZxyz(6.9769, 4.4172, 26.4662)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2D8F #8F8F2D
analogous
#2D5E8F #2D2D8F #5E2D8F
triadic
#2D2D8F #8F2D2D #2D8F2D
tetradic
#2D2D8F #8F2D5E #8F8F2D #2D8F5E
square
#2D2D8F #8F2D5E #8F8F2D #2D8F5E
split-complementary
#2D2D8F #8F5E2D #5E8F2D
monochromatic
#101032 #1E1E60 #2D2D8F #3C3CBE #6767CF

Accessibility & contrast

On white

11.15
#2D2D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2D2D8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2D8F
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2D8F#FFFFFF#000000##FFFFFF
##2D2D8F1.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004092
Deuteranopia (green-blind)
#00378D
Tritanopia (blue-blind)
#00475A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2d2d8f;
/* rgb */ color: rgb(45, 45, 143);
/* oklch */ color: oklch(36.7% 0.157 275.4);
Tailwind
colors: {
  custom: {
    50: '#7466b1',
    500: '#2d2d8f',
    950: '#000000',
  },
}
SCSS
$custom: #2d2d8f;
$custom-light: #7466b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2d8f",
  "rgb": {
    "r": 45,
    "g": 45,
    "b": 143
  },
  "hsl": {
    "h": 240,
    "s": 52.128,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36703,
    "c": 0.15694,
    "h": 275.4
  },
  "luminance": 0.04418
}

Semantic roles & 50–950 ramp

primary
#2D2D8F
secondary
#B6B662
accent
#DC4CDC
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2D2D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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