#2A417A#2A417A

#2A417A is a dark, moderate blue. Relative luminance 0.057; OKLCH L 38.8% C 0.101 H 265.4°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#2A417A
RGBrgb(42, 65, 122)
HSLhsl(223, 49%, 32%)
HSVhsv(223, 66%, 48%)
CMYKcmyk(65.6%, 46.7%, 0%, 52.2%)
CIE-LABlab(28.58, 10.79, -35.23)
CIE-LCHlch(28.58, 36.84, 287.03°)
OKLaboklab(38.81% -0.008 -0.1006)
OKLCHoklch(38.81% 0.101 265.4)
XYZxyz(6.3568, 5.6774, 19.1694)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A417A #7A632A
analogous
#2A697A #2A417A #3B2A7A
triadic
#2A417A #7A2A41 #417A2A
tetradic
#2A417A #7A2A69 #7A632A #2A7A3B
square
#2A417A #7A2A69 #7A632A #2A7A3B
split-complementary
#2A417A #7A3B2A #697A2A
monochromatic
#0B101F #1A294C #2A417A #3A59A8 #5978C6

Accessibility & contrast

On white

9.83
#2A417A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A417A
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A417A#FFFFFF#000000##FFFFFF
##2A417A1.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26477C
Deuteranopia (green-blind)
#194079
Tritanopia (blue-blind)
#004E57
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2a417a;
/* rgb */ color: rgb(42, 65, 122);
/* oklch */ color: oklch(38.8% 0.101 265.4);
Tailwind
colors: {
  custom: {
    50: '#6c75a1',
    500: '#2a417a',
    950: '#000000',
  },
}
SCSS
$custom: #2a417a;
$custom-light: #6c75a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a417a",
  "rgb": {
    "r": 42,
    "g": 65,
    "b": 122
  },
  "hsl": {
    "h": 222.75,
    "s": 48.78,
    "l": 32.157
  },
  "oklch": {
    "l": 0.38807,
    "c": 0.1009,
    "h": 265.4
  },
  "luminance": 0.05678
}

Semantic roles & 50–950 ramp

primary
#2A417A
secondary
#AB9255
accent
#B14FD8
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07080F
muted
#7A7B7E

Preview Lab

Preview with #2A417A

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

Preview Lab → · Contrast checker → · Palette generator →

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