#2A407F#2A407F

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

Color values

HEX#2A407F
RGBrgb(42, 64, 127)
HSLhsl(224, 50%, 33%)
HSVhsv(224, 67%, 50%)
CMYKcmyk(66.9%, 49.6%, 0%, 50.2%)
CIE-LABlab(28.62, 13.38, -38.30)
CIE-LCHlch(28.62, 40.57, 289.25°)
OKLaboklab(38.94% -0.0061 -0.1096)
OKLCHoklch(38.94% 0.11 266.8)
XYZxyz(6.6177, 5.6907, 20.8242)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A407F #7F692A
analogous
#2A6A7F #2A407F #3F2A7F
triadic
#2A407F #7F2A40 #407F2A
tetradic
#2A407F #7F2A6A #7F692A #2A7F3F
square
#2A407F #7F2A6A #7F692A #2A7F3F
split-complementary
#2A407F #7F3F2A #6A7F2A
monochromatic
#0C1223 #1B2951 #2A407F #3957AD #5B77C9

Accessibility & contrast

On white

9.82
#2A407F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#2A407F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A407F
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A407F#FFFFFF#000000##FFFFFF
##2A407F1.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4881
Deuteranopia (green-blind)
#0E407E
Tritanopia (blue-blind)
#004F59
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2a407f;
/* rgb */ color: rgb(42, 64, 127);
/* oklch */ color: oklch(38.9% 0.110 266.8);
Tailwind
colors: {
  custom: {
    50: '#6d74a4',
    500: '#2a407f',
    950: '#000000',
  },
}
SCSS
$custom: #2a407f;
$custom-light: #6d74a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a407f",
  "rgb": {
    "r": 42,
    "g": 64,
    "b": 127
  },
  "hsl": {
    "h": 224.471,
    "s": 50.296,
    "l": 33.137
  },
  "oklch": {
    "l": 0.38941,
    "c": 0.10981,
    "h": 266.8
  },
  "luminance": 0.05691
}

Semantic roles & 50–950 ramp

primary
#2A407F
secondary
#AE9857
accent
#B64EDA
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2A407F

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

Preview Lab → · Contrast checker → · Palette generator →

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