#2D2D9D#2D2D9D

#2D2D9D is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.1% C 0.175 H 274.2°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#2D2D9D
RGBrgb(45, 45, 157)
HSLhsl(240, 55%, 40%)
HSVhsv(240, 71%, 62%)
CMYKcmyk(71.3%, 71.3%, 0%, 38.4%)
CIE-LABlab(26.36, 37.50, -60.50)
CIE-LCHlch(26.36, 71.18, 301.79°)
OKLaboklab(38.09% 0.0129 -0.1749)
OKLCHoklch(38.09% 0.175 274.2)
XYZxyz(8.1044, 4.8682, 32.4043)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2D9D #9D9D2D
analogous
#2D659D #2D2D9D #652D9D
triadic
#2D2D9D #9D2D2D #2D9D2D
tetradic
#2D2D9D #9D2D65 #9D9D2D #2D9D65
square
#2D2D9D #9D2D65 #9D9D2D #2D9D65
split-complementary
#2D2D9D #9D652D #659D2D
monochromatic
#12123E #1F1F6D #2D2D9D #3F3FC8 #6F6FD6

Accessibility & contrast

On white

10.64
#2D2D9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#2D2D9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2D9D
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2D9D#FFFFFF#000000##FFFFFF
##2D2D9D1.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A0
Deuteranopia (green-blind)
#00399B
Tritanopia (blue-blind)
#004C61
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2d2d9d;
/* rgb */ color: rgb(45, 45, 157);
/* oklch */ color: oklch(38.1% 0.175 274.2);
Tailwind
colors: {
  custom: {
    50: '#7767bb',
    500: '#2d2d9d',
    950: '#000000',
  },
}
SCSS
$custom: #2d2d9d;
$custom-light: #7767bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2d9d",
  "rgb": {
    "r": 45,
    "g": 45,
    "b": 157
  },
  "hsl": {
    "h": 240,
    "s": 55.446,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38088,
    "c": 0.17538,
    "h": 274.2
  },
  "luminance": 0.04869
}

Semantic roles & 50–950 ramp

primary
#2D2D9D
secondary
#BDBD69
accent
#DF49DF
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2D2D9D

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

Preview Lab → · Contrast checker → · Palette generator →

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