#2D417F#2D417F

#2D417F is a dark, moderate blue. Relative luminance 0.059; OKLCH L 39.3% C 0.107 H 267.8°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#2D417F
RGBrgb(45, 65, 127)
HSLhsl(225, 48%, 34%)
HSVhsv(225, 65%, 50%)
CMYKcmyk(64.6%, 48.8%, 0%, 50.2%)
CIE-LABlab(29.08, 13.27, -37.55)
CIE-LCHlch(29.08, 39.82, 289.46°)
OKLaboklab(39.34% -0.0041 -0.1073)
OKLCHoklch(39.34% 0.107 267.8)
XYZxyz(6.8019, 5.8702, 20.8492)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D417F #7F6B2D
analogous
#2D6A7F #2D417F #422D7F
triadic
#2D417F #7F2D41 #417F2D
tetradic
#2D417F #7F2D6A #7F6B2D #2D7F42
square
#2D417F #7F2D6A #7F6B2D #2D7F42
split-complementary
#2D417F #7F422D #6A7F2D
monochromatic
#0D1325 #1D2A52 #2D417F #3D58AC #6079C7

Accessibility & contrast

On white

9.66
#2D417F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D417F
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D417F#FFFFFF#000000##FFFFFF
##2D417F1.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224881
Deuteranopia (green-blind)
#14417E
Tritanopia (blue-blind)
#004F5A
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2d417f;
/* rgb */ color: rgb(45, 65, 127);
/* oklch */ color: oklch(39.3% 0.107 267.8);
Tailwind
colors: {
  custom: {
    50: '#6f75a4',
    500: '#2d417f',
    950: '#000000',
  },
}
SCSS
$custom: #2d417f;
$custom-light: #6f75a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d417f",
  "rgb": {
    "r": 45,
    "g": 65,
    "b": 127
  },
  "hsl": {
    "h": 225.366,
    "s": 47.674,
    "l": 33.725
  },
  "oklch": {
    "l": 0.39341,
    "c": 0.10742,
    "h": 267.8
  },
  "luminance": 0.05871
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D417F

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

Preview Lab → · Contrast checker → · Palette generator →

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