#2A407C#2A407C

#2A407C is a dark, moderate blue. Relative luminance 0.056; OKLCH L 38.7% C 0.105 H 266.4°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#2A407C
RGBrgb(42, 64, 124)
HSLhsl(224, 49%, 33%)
HSVhsv(224, 66%, 49%)
CMYKcmyk(66.1%, 48.4%, 0%, 51.4%)
CIE-LABlab(28.42, 12.23, -36.75)
CIE-LCHlch(28.42, 38.73, 288.41°)
OKLaboklab(38.72% -0.0066 -0.1051)
OKLCHoklch(38.72% 0.105 266.4)
XYZxyz(6.4251, 5.6137, 19.8098)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A407C #7C662A
analogous
#2A697C #2A407C #3D2A7C
triadic
#2A407C #7C2A40 #407C2A
tetradic
#2A407C #7C2A69 #7C662A #2A7C3D
square
#2A407C #7C2A69 #7C662A #2A7C3D
split-complementary
#2A407C #7C3D2A #697C2A
monochromatic
#0B1121 #1B284E #2A407C #3958AA #5977C7

Accessibility & contrast

On white

9.89
#2A407C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#2A407C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A407C
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A407C#FFFFFF#000000##FFFFFF
##2A407C1.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22477E
Deuteranopia (green-blind)
#13407B
Tritanopia (blue-blind)
#004E58
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2a407c;
/* rgb */ color: rgb(42, 64, 124);
/* oklch */ color: oklch(38.7% 0.105 266.4);
Tailwind
colors: {
  custom: {
    50: '#6d74a2',
    500: '#2a407c',
    950: '#000000',
  },
}
SCSS
$custom: #2a407c;
$custom-light: #6d74a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a407c",
  "rgb": {
    "r": 42,
    "g": 64,
    "b": 124
  },
  "hsl": {
    "h": 223.902,
    "s": 49.398,
    "l": 32.549
  },
  "oklch": {
    "l": 0.38722,
    "c": 0.10528,
    "h": 266.4
  },
  "luminance": 0.05614
}

Semantic roles & 50–950 ramp

primary
#2A407C
secondary
#AD9555
accent
#B44FD9
background
#F6F7FA
surface
#ECEDF3
border
#C7C8CD
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #2A407C

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

Preview Lab → · Contrast checker → · Palette generator →

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