#2A427E#2A427E

#2A427E is a dark, moderate blue. Relative luminance 0.059; OKLCH L 39.3% C 0.106 H 265.4°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#2A427E
RGBrgb(42, 66, 126)
HSLhsl(223, 50%, 33%)
HSVhsv(223, 67%, 49%)
CMYKcmyk(66.7%, 47.6%, 0%, 50.6%)
CIE-LABlab(29.14, 11.62, -36.83)
CIE-LCHlch(29.14, 38.62, 287.52°)
OKLaboklab(39.32% -0.0084 -0.1053)
OKLCHoklch(39.32% 0.106 265.4)
XYZxyz(6.6677, 5.8944, 20.5210)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A427E #7E662A
analogous
#2A6C7E #2A427E #3C2A7E
triadic
#2A427E #7E2A42 #427E2A
tetradic
#2A427E #7E2A6C #7E662A #2A7E3C
square
#2A427E #7E2A6C #7E662A #2A7E3C
split-complementary
#2A427E #7E3C2A #6C7E2A
monochromatic
#0B1222 #1B2A50 #2A427E #395AAC #5A7AC8

Accessibility & contrast

On white

9.64
#2A427E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#2A427E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A427E
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A427E#FFFFFF#000000##FFFFFF
##2A427E1.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254980
Deuteranopia (green-blind)
#16417D
Tritanopia (blue-blind)
#00505A
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2a427e;
/* rgb */ color: rgb(42, 66, 126);
/* oklch */ color: oklch(39.3% 0.106 265.4);
Tailwind
colors: {
  custom: {
    50: '#6d76a4',
    500: '#2a427e',
    950: '#000000',
  },
}
SCSS
$custom: #2a427e;
$custom-light: #6d76a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a427e",
  "rgb": {
    "r": 42,
    "g": 66,
    "b": 126
  },
  "hsl": {
    "h": 222.857,
    "s": 50,
    "l": 32.941
  },
  "oklch": {
    "l": 0.39322,
    "c": 0.10563,
    "h": 265.4
  },
  "luminance": 0.05895
}

Semantic roles & 50–950 ramp

primary
#2A427E
secondary
#AE9556
accent
#B24EDA
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2A427E

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

Preview Lab → · Contrast checker → · Palette generator →

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