#2A417D#2A417D

#2A417D is a dark, moderate blue. Relative luminance 0.058; OKLCH L 39.0% C 0.105 H 265.9°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#2A417D
RGBrgb(42, 65, 125)
HSLhsl(223, 50%, 33%)
HSVhsv(223, 66%, 49%)
CMYKcmyk(66.4%, 48%, 0%, 51%)
CIE-LABlab(28.78, 11.93, -36.79)
CIE-LCHlch(28.78, 38.68, 287.96°)
OKLaboklab(39.02% -0.0075 -0.1052)
OKLCHoklch(39.02% 0.105 265.9)
XYZxyz(6.5455, 5.7529, 20.1635)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A417D #7D662A
analogous
#2A6B7D #2A417D #3C2A7D
triadic
#2A417D #7D2A41 #417D2A
tetradic
#2A417D #7D2A6B #7D662A #2A7D3C
square
#2A417D #7D2A6B #7D662A #2A7D3C
split-complementary
#2A417D #7D3C2A #6B7D2A
monochromatic
#0B1121 #1B294F #2A417D #3959AB #5A78C8

Accessibility & contrast

On white

9.76
#2A417D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#2A417D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A417D
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A417D#FFFFFF#000000##FFFFFF
##2A417D1.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a417d;
/* rgb */ color: rgb(42, 65, 125);
/* oklch */ color: oklch(39.0% 0.105 265.9);
Tailwind
colors: {
  custom: {
    50: '#6d75a3',
    500: '#2a417d',
    950: '#000000',
  },
}
SCSS
$custom: #2a417d;
$custom-light: #6d75a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a417d",
  "rgb": {
    "r": 42,
    "g": 65,
    "b": 125
  },
  "hsl": {
    "h": 223.373,
    "s": 49.701,
    "l": 32.745
  },
  "oklch": {
    "l": 0.39022,
    "c": 0.10545,
    "h": 265.9
  },
  "luminance": 0.05754
}

Semantic roles & 50–950 ramp

primary
#2A417D
secondary
#AD9556
accent
#B34FD9
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2A417D

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

Preview Lab → · Contrast checker → · Palette generator →

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