#2A417E#2A417E

#2A417E is a dark, moderate blue. Relative luminance 0.058; OKLCH L 39.1% C 0.107 H 266.1°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#2A417E
RGBrgb(42, 65, 126)
HSLhsl(224, 50%, 33%)
HSVhsv(224, 67%, 49%)
CMYKcmyk(66.7%, 48.4%, 0%, 50.6%)
CIE-LABlab(28.85, 12.31, -37.31)
CIE-LCHlch(28.85, 39.29, 288.26°)
OKLaboklab(39.09% -0.0073 -0.1067)
OKLCHoklch(39.09% 0.107 266.1)
XYZxyz(6.6097, 5.7786, 20.5017)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A417E #7E672A
analogous
#2A6B7E #2A417E #3D2A7E
triadic
#2A417E #7E2A41 #417E2A
tetradic
#2A417E #7E2A6B #7E672A #2A7E3D
square
#2A417E #7E2A6B #7E672A #2A7E3D
split-complementary
#2A417E #7E3D2A #6B7E2A
monochromatic
#0B1222 #1B2950 #2A417E #3959AC #5A78C8

Accessibility & contrast

On white

9.74
#2A417E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A417E
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A417E#FFFFFF#000000##FFFFFF
##2A417E1.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a417e;
/* rgb */ color: rgb(42, 65, 126);
/* oklch */ color: oklch(39.1% 0.107 266.1);
Tailwind
colors: {
  custom: {
    50: '#6d75a4',
    500: '#2a417e',
    950: '#000000',
  },
}
SCSS
$custom: #2a417e;
$custom-light: #6d75a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a417e",
  "rgb": {
    "r": 42,
    "g": 65,
    "b": 126
  },
  "hsl": {
    "h": 223.571,
    "s": 50,
    "l": 32.941
  },
  "oklch": {
    "l": 0.39094,
    "c": 0.10695,
    "h": 266.1
  },
  "luminance": 0.05779
}

Semantic roles & 50–950 ramp

primary
#2A417E
secondary
#AE9656
accent
#B34EDA
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2A417E

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

Preview Lab → · Contrast checker → · Palette generator →

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