#2D417E#2D417E

#2D417E is a dark, moderate blue. Relative luminance 0.058; OKLCH L 39.3% C 0.106 H 267.7°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#2D417E
RGBrgb(45, 65, 126)
HSLhsl(225, 47%, 34%)
HSVhsv(225, 64%, 49%)
CMYKcmyk(64.3%, 48.4%, 0%, 50.6%)
CIE-LABlab(29.02, 12.89, -37.03)
CIE-LCHlch(29.02, 39.21, 289.19°)
OKLaboklab(39.27% -0.0043 -0.1058)
OKLCHoklch(39.27% 0.106 267.7)
XYZxyz(6.7371, 5.8443, 20.5076)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D417E #7E6A2D
analogous
#2D697E #2D417E #412D7E
triadic
#2D417E #7E2D41 #417E2D
tetradic
#2D417E #7E2D69 #7E6A2D #2D7E41
square
#2D417E #7E2D69 #7E6A2D #2D7E41
split-complementary
#2D417E #7E412D #697E2D
monochromatic
#0D1224 #1D2A51 #2D417E #3D58AB #5F79C6

Accessibility & contrast

On white

9.68
#2D417E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#2D417E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D417E
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D417E#FFFFFF#000000##FFFFFF
##2D417E1.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234880
Deuteranopia (green-blind)
#15417D
Tritanopia (blue-blind)
#004F59
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2d417e;
/* rgb */ color: rgb(45, 65, 126);
/* oklch */ color: oklch(39.3% 0.106 267.7);
Tailwind
colors: {
  custom: {
    50: '#6e75a4',
    500: '#2d417e',
    950: '#000000',
  },
}
SCSS
$custom: #2d417e;
$custom-light: #6e75a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d417e",
  "rgb": {
    "r": 45,
    "g": 65,
    "b": 126
  },
  "hsl": {
    "h": 225.185,
    "s": 47.368,
    "l": 33.529
  },
  "oklch": {
    "l": 0.39269,
    "c": 0.1059,
    "h": 267.7
  },
  "luminance": 0.05845
}

Semantic roles & 50–950 ramp

primary
#2D417E
secondary
#AC985A
accent
#B651D7
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2D417E

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

Preview Lab → · Contrast checker → · Palette generator →

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