#2A417F#2A417F

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

Color values

HEX#2A417F
RGBrgb(42, 65, 127)
HSLhsl(224, 50%, 33%)
HSVhsv(224, 67%, 50%)
CMYKcmyk(66.9%, 48.8%, 0%, 50.2%)
CIE-LABlab(28.91, 12.69, -37.83)
CIE-LCHlch(28.91, 39.90, 288.55°)
OKLaboklab(39.17% -0.0072 -0.1082)
OKLCHoklch(39.17% 0.108 266.2)
XYZxyz(6.6746, 5.8045, 20.8432)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A417F #7F682A
analogous
#2A6B7F #2A417F #3D2A7F
triadic
#2A417F #7F2A41 #417F2A
tetradic
#2A417F #7F2A6B #7F682A #2A7F3D
square
#2A417F #7F2A6B #7F682A #2A7F3D
split-complementary
#2A417F #7F3D2A #6B7F2A
monochromatic
#0C1223 #1B2951 #2A417F #3959AD #5B78C9

Accessibility & contrast

On white

9.72
#2A417F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A417F
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A417F#FFFFFF#000000##FFFFFF
##2A417F1.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a417f;
/* rgb */ color: rgb(42, 65, 127);
/* oklch */ color: oklch(39.2% 0.108 266.2);
Tailwind
colors: {
  custom: {
    50: '#6d75a4',
    500: '#2a417f',
    950: '#000000',
  },
}
SCSS
$custom: #2a417f;
$custom-light: #6d75a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a417f",
  "rgb": {
    "r": 42,
    "g": 65,
    "b": 127
  },
  "hsl": {
    "h": 223.765,
    "s": 50.296,
    "l": 33.137
  },
  "oklch": {
    "l": 0.39167,
    "c": 0.10847,
    "h": 266.2
  },
  "luminance": 0.05805
}

Semantic roles & 50–950 ramp

primary
#2A417F
secondary
#AE9757
accent
#B44EDA
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2A417F

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

Preview Lab → · Contrast checker → · Palette generator →

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