#2A407E#2A407E

#2A407E is a dark, moderate blue. Relative luminance 0.057; OKLCH L 38.9% C 0.108 H 266.7°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#2A407E
RGBrgb(42, 64, 126)
HSLhsl(224, 50%, 33%)
HSVhsv(224, 67%, 49%)
CMYKcmyk(66.7%, 49.2%, 0%, 50.6%)
CIE-LABlab(28.55, 12.99, -37.79)
CIE-LCHlch(28.55, 39.96, 288.98°)
OKLaboklab(38.87% -0.0063 -0.1081)
OKLCHoklch(38.87% 0.108 266.7)
XYZxyz(6.5528, 5.6648, 20.4827)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A407E #7E682A
analogous
#2A6A7E #2A407E #3E2A7E
triadic
#2A407E #7E2A40 #407E2A
tetradic
#2A407E #7E2A6A #7E682A #2A7E3E
square
#2A407E #7E2A6A #7E682A #2A7E3E
split-complementary
#2A407E #7E3E2A #6A7E2A
monochromatic
#0B1122 #1B2950 #2A407E #3957AC #5A77C8

Accessibility & contrast

On white

9.85
#2A407E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#2A407E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A407E
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A407E#FFFFFF#000000##FFFFFF
##2A407E1.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204780
Deuteranopia (green-blind)
#10407D
Tritanopia (blue-blind)
#004E59
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2a407e;
/* rgb */ color: rgb(42, 64, 126);
/* oklch */ color: oklch(38.9% 0.108 266.7);
Tailwind
colors: {
  custom: {
    50: '#6d74a4',
    500: '#2a407e',
    950: '#000000',
  },
}
SCSS
$custom: #2a407e;
$custom-light: #6d74a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a407e",
  "rgb": {
    "r": 42,
    "g": 64,
    "b": 126
  },
  "hsl": {
    "h": 224.286,
    "s": 50,
    "l": 32.941
  },
  "oklch": {
    "l": 0.38867,
    "c": 0.1083,
    "h": 266.7
  },
  "luminance": 0.05665
}

Semantic roles & 50–950 ramp

primary
#2A407E
secondary
#AE9756
accent
#B54EDA
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2A407E

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

Preview Lab → · Contrast checker → · Palette generator →

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