#2D2D7C#2D2D7C

#2D2D7C is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.9% C 0.131 H 277.2°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#2D2D7C
RGBrgb(45, 45, 124)
HSLhsl(240, 47%, 33%)
HSVhsv(240, 64%, 49%)
CMYKcmyk(63.7%, 63.7%, 0%, 51.4%)
CIE-LABlab(23.30, 25.82, -45.00)
CIE-LCHlch(23.30, 51.88, 299.84°)
OKLaboklab(34.93% 0.0165 -0.1295)
OKLCHoklch(34.93% 0.131 277.2)
XYZxyz(5.6575, 3.8895, 19.5175)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2D7C #7C7C2D
analogous
#2D547C #2D2D7C #542D7C
triadic
#2D2D7C #7C2D2D #2D7C2D
tetradic
#2D2D7C #7C2D54 #7C7C2D #2D7C54
square
#2D2D7C #7C2D54 #7C7C2D #2D7C54
split-complementary
#2D2D7C #7C542D #547C2D
monochromatic
#0C0C22 #1D1D4F #2D2D7C #3D3DA9 #5F5FC5

Accessibility & contrast

On white

11.81
#2D2D7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2D2D7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2D7C
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2D7C#FFFFFF#000000##FFFFFF
##2D2D7C1.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7F
Deuteranopia (green-blind)
#00347A
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2d2d7c;
/* rgb */ color: rgb(45, 45, 124);
/* oklch */ color: oklch(34.9% 0.131 277.2);
Tailwind
colors: {
  custom: {
    50: '#6f66a3',
    500: '#2d2d7c',
    950: '#000000',
  },
}
SCSS
$custom: #2d2d7c;
$custom-light: #6f66a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2d7c",
  "rgb": {
    "r": 45,
    "g": 45,
    "b": 124
  },
  "hsl": {
    "h": 240,
    "s": 46.746,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34934,
    "c": 0.13054,
    "h": 277.2
  },
  "luminance": 0.0389
}

Semantic roles & 50–950 ramp

primary
#2D2D7C
secondary
#ABAB5A
accent
#D651D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2D2D7C

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

Preview Lab → · Contrast checker → · Palette generator →

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