#2D2D9B#2D2D9B

#2D2D9B is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.9% C 0.173 H 274.4°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#2D2D9B
RGBrgb(45, 45, 155)
HSLhsl(240, 55%, 39%)
HSVhsv(240, 71%, 61%)
CMYKcmyk(71%, 71%, 0%, 39.2%)
CIE-LABlab(26.16, 36.81, -59.61)
CIE-LCHlch(26.16, 70.06, 301.70°)
OKLaboklab(37.89% 0.0132 -0.1723)
OKLCHoklch(37.89% 0.173 274.4)
XYZxyz(7.9350, 4.8005, 31.5124)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2D9B #9B9B2D
analogous
#2D649B #2D2D9B #642D9B
triadic
#2D2D9B #9B2D2D #2D9B2D
tetradic
#2D2D9B #9B2D64 #9B9B2D #2D9B64
square
#2D2D9B #9B2D64 #9B9B2D #2D9B64
split-complementary
#2D2D9B #9B642D #649B2D
monochromatic
#11113C #1F1F6C #2D2D9B #3E3EC7 #6E6ED5

Accessibility & contrast

On white

10.71
#2D2D9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#2D2D9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2D9B
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2D9B#FFFFFF#000000##FFFFFF
##2D2D9B1.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439E
Deuteranopia (green-blind)
#003999
Tritanopia (blue-blind)
#004B60
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2d2d9b;
/* rgb */ color: rgb(45, 45, 155);
/* oklch */ color: oklch(37.9% 0.173 274.4);
Tailwind
colors: {
  custom: {
    50: '#7667ba',
    500: '#2d2d9b',
    950: '#000000',
  },
}
SCSS
$custom: #2d2d9b;
$custom-light: #7667ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2d9b",
  "rgb": {
    "r": 45,
    "g": 45,
    "b": 155
  },
  "hsl": {
    "h": 240,
    "s": 55,
    "l": 39.216
  },
  "oklch": {
    "l": 0.37887,
    "c": 0.17279,
    "h": 274.4
  },
  "luminance": 0.04801
}

Semantic roles & 50–950 ramp

primary
#2D2D9B
secondary
#BCBC68
accent
#DE49DE
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2D2D9B

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

Preview Lab → · Contrast checker → · Palette generator →

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