#2A407A#2A407A

#2A407A is a dark, moderate blue. Relative luminance 0.056; OKLCH L 38.6% C 0.102 H 266.1°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#2A407A
RGBrgb(42, 64, 122)
HSLhsl(224, 49%, 32%)
HSVhsv(224, 66%, 48%)
CMYKcmyk(65.6%, 47.5%, 0%, 52.2%)
CIE-LABlab(28.28, 11.47, -35.71)
CIE-LCHlch(28.28, 37.50, 287.81°)
OKLaboklab(38.58% -0.0069 -0.102)
OKLCHoklch(38.58% 0.102 266.1)
XYZxyz(6.2999, 5.5636, 19.1505)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A407A #7A642A
analogous
#2A687A #2A407A #3C2A7A
triadic
#2A407A #7A2A40 #407A2A
tetradic
#2A407A #7A2A68 #7A642A #2A7A3C
square
#2A407A #7A2A68 #7A642A #2A7A3C
split-complementary
#2A407A #7A3C2A #687A2A
monochromatic
#0B101F #1A284C #2A407A #3A58A8 #5977C6

Accessibility & contrast

On white

9.94
#2A407A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#2A407A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A407A
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A407A#FFFFFF#000000##FFFFFF
##2A407A1.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24477C
Deuteranopia (green-blind)
#163F79
Tritanopia (blue-blind)
#004D57
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2a407a;
/* rgb */ color: rgb(42, 64, 122);
/* oklch */ color: oklch(38.6% 0.102 266.1);
Tailwind
colors: {
  custom: {
    50: '#6c74a1',
    500: '#2a407a',
    950: '#000000',
  },
}
SCSS
$custom: #2a407a;
$custom-light: #6c74a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a407a",
  "rgb": {
    "r": 42,
    "g": 64,
    "b": 122
  },
  "hsl": {
    "h": 223.5,
    "s": 48.78,
    "l": 32.157
  },
  "oklch": {
    "l": 0.38577,
    "c": 0.10223,
    "h": 266.1
  },
  "luminance": 0.05564
}

Semantic roles & 50–950 ramp

primary
#2A407A
secondary
#AB9355
accent
#B34FD8
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07080F
muted
#7A7B7E

Preview Lab

Preview with #2A407A

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

Preview Lab → · Contrast checker → · Palette generator →

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