#2A417C#2A417C

#2A417C is a dark, moderate blue. Relative luminance 0.057; OKLCH L 39.0% C 0.104 H 265.8°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#2A417C
RGBrgb(42, 65, 124)
HSLhsl(223, 49%, 33%)
HSVhsv(223, 66%, 49%)
CMYKcmyk(66.1%, 47.6%, 0%, 51.4%)
CIE-LABlab(28.71, 11.55, -36.27)
CIE-LCHlch(28.71, 38.06, 287.66°)
OKLaboklab(38.95% -0.0077 -0.1036)
OKLCHoklch(38.95% 0.104 265.8)
XYZxyz(6.4820, 5.7275, 19.8288)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A417C #7C652A
analogous
#2A6A7C #2A417C #3C2A7C
triadic
#2A417C #7C2A41 #417C2A
tetradic
#2A417C #7C2A6A #7C652A #2A7C3C
square
#2A417C #7C2A6A #7C652A #2A7C3C
split-complementary
#2A417C #7C3C2A #6A7C2A
monochromatic
#0B1121 #1B294E #2A417C #3959AA #5978C7

Accessibility & contrast

On white

9.79
#2A417C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#2A417C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A417C
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A417C#FFFFFF#000000##FFFFFF
##2A417C1.009.792.159.79
#FFFFFF9.791.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24487E
Deuteranopia (green-blind)
#16407B
Tritanopia (blue-blind)
#004E58
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2a417c;
/* rgb */ color: rgb(42, 65, 124);
/* oklch */ color: oklch(39.0% 0.104 265.8);
Tailwind
colors: {
  custom: {
    50: '#6d75a2',
    500: '#2a417c',
    950: '#000000',
  },
}
SCSS
$custom: #2a417c;
$custom-light: #6d75a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a417c",
  "rgb": {
    "r": 42,
    "g": 65,
    "b": 124
  },
  "hsl": {
    "h": 223.171,
    "s": 49.398,
    "l": 32.549
  },
  "oklch": {
    "l": 0.3895,
    "c": 0.10393,
    "h": 265.8
  },
  "luminance": 0.05728
}

Semantic roles & 50–950 ramp

primary
#2A417C
secondary
#AD9455
accent
#B24FD9
background
#F6F7FA
surface
#ECEDF3
border
#C7C8CD
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #2A417C

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

Preview Lab → · Contrast checker → · Palette generator →

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