#2D417D#2D417D

#2D417D is a dark, moderate blue. Relative luminance 0.058; OKLCH L 39.2% C 0.104 H 267.6°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#2D417D
RGBrgb(45, 65, 125)
HSLhsl(225, 47%, 33%)
HSVhsv(225, 64%, 49%)
CMYKcmyk(64%, 48%, 0%, 51%)
CIE-LABlab(28.95, 12.52, -36.51)
CIE-LCHlch(28.95, 38.60, 288.92°)
OKLaboklab(39.2% -0.0044 -0.1043)
OKLCHoklch(39.2% 0.104 267.6)
XYZxyz(6.6729, 5.8186, 20.1695)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D417D #7D692D
analogous
#2D697D #2D417D #412D7D
triadic
#2D417D #7D2D41 #417D2D
tetradic
#2D417D #7D2D69 #7D692D #2D7D41
square
#2D417D #7D2D69 #7D692D #2D7D41
split-complementary
#2D417D #7D412D #697D2D
monochromatic
#0D1223 #1D2A50 #2D417D #3D58AA #5F79C5

Accessibility & contrast

On white

9.71
#2D417D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#2D417D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D417D
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D417D#FFFFFF#000000##FFFFFF
##2D417D1.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24487F
Deuteranopia (green-blind)
#17417C
Tritanopia (blue-blind)
#004F59
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2d417d;
/* rgb */ color: rgb(45, 65, 125);
/* oklch */ color: oklch(39.2% 0.104 267.6);
Tailwind
colors: {
  custom: {
    50: '#6e75a3',
    500: '#2d417d',
    950: '#000000',
  },
}
SCSS
$custom: #2d417d;
$custom-light: #6e75a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2d417d",
  "rgb": {
    "r": 45,
    "g": 65,
    "b": 125
  },
  "hsl": {
    "h": 225,
    "s": 47.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.39197,
    "c": 0.10437,
    "h": 267.6
  },
  "luminance": 0.05819
}

Semantic roles & 50–950 ramp

primary
#2D417D
secondary
#AC975A
accent
#B551D7
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2D417D

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

Preview Lab → · Contrast checker → · Palette generator →

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