#2D2D8E#2D2D8E

#2D2D8E is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.6% C 0.156 H 275.5°. Best body text is #FFFFFF at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#2D2D8E
RGBrgb(45, 45, 142)
HSLhsl(240, 52%, 37%)
HSVhsv(240, 68%, 56%)
CMYKcmyk(68.3%, 68.3%, 0%, 44.3%)
CIE-LABlab(24.91, 32.25, -53.65)
CIE-LCHlch(24.91, 62.60, 301.01°)
OKLaboklab(36.61% 0.0149 -0.1549)
OKLCHoklch(36.61% 0.156 275.5)
XYZxyz(6.9015, 4.3870, 26.0690)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2D8E #8E8E2D
analogous
#2D5E8E #2D2D8E #5E2D8E
triadic
#2D2D8E #8E2D2D #2D8E2D
tetradic
#2D2D8E #8E2D5E #8E8E2D #2D8E5E
square
#2D2D8E #8E2D5E #8E8E2D #2D8E5E
split-complementary
#2D2D8E #8E5E2D #5E8E2D
monochromatic
#101031 #1E1E60 #2D2D8E #3C3CBC #6767CF

Accessibility & contrast

On white

11.18
#2D2D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D2D8E
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2D8E#FFFFFF#000000##FFFFFF
##2D2D8E1.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#00378C
Tritanopia (blue-blind)
#004759
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2d2d8e;
/* rgb */ color: rgb(45, 45, 142);
/* oklch */ color: oklch(36.6% 0.156 275.5);
Tailwind
colors: {
  custom: {
    50: '#7366b0',
    500: '#2d2d8e',
    950: '#000000',
  },
}
SCSS
$custom: #2d2d8e;
$custom-light: #7366b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2d8e",
  "rgb": {
    "r": 45,
    "g": 45,
    "b": 142
  },
  "hsl": {
    "h": 240,
    "s": 51.872,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36607,
    "c": 0.15559,
    "h": 275.5
  },
  "luminance": 0.04388
}

Semantic roles & 50–950 ramp

primary
#2D2D8E
secondary
#B5B561
accent
#DB4CDB
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2D2D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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