#2A427F#2A427F

#2A427F is a dark, moderate blue. Relative luminance 0.059; OKLCH L 39.4% C 0.107 H 265.6°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#2A427F
RGBrgb(42, 66, 127)
HSLhsl(223, 50%, 33%)
HSVhsv(223, 67%, 50%)
CMYKcmyk(66.9%, 48%, 0%, 50.2%)
CIE-LABlab(29.21, 12.00, -37.35)
CIE-LCHlch(29.21, 39.23, 287.82°)
OKLaboklab(39.39% -0.0082 -0.1068)
OKLCHoklch(39.39% 0.107 265.6)
XYZxyz(6.7325, 5.9204, 20.8625)
Luminance0.0592 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A427F #7F672A
analogous
#2A6C7F #2A427F #3C2A7F
triadic
#2A427F #7F2A42 #427F2A
tetradic
#2A427F #7F2A6C #7F672A #2A7F3C
square
#2A427F #7F2A6C #7F672A #2A7F3C
split-complementary
#2A427F #7F3C2A #6C7F2A
monochromatic
#0C1223 #1B2A51 #2A427F #395AAD #5B7AC9

Accessibility & contrast

On white

9.61
#2A427F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A427F
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A427F#FFFFFF#000000##FFFFFF
##2A427F1.009.612.189.61
#FFFFFF9.611.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244981
Deuteranopia (green-blind)
#14417E
Tritanopia (blue-blind)
#00505A
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2a427f;
/* rgb */ color: rgb(42, 66, 127);
/* oklch */ color: oklch(39.4% 0.107 265.6);
Tailwind
colors: {
  custom: {
    50: '#6d75a4',
    500: '#2a427f',
    950: '#000000',
  },
}
SCSS
$custom: #2a427f;
$custom-light: #6d75a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a427f",
  "rgb": {
    "r": 42,
    "g": 66,
    "b": 127
  },
  "hsl": {
    "h": 223.059,
    "s": 50.296,
    "l": 33.137
  },
  "oklch": {
    "l": 0.39394,
    "c": 0.10713,
    "h": 265.6
  },
  "luminance": 0.05921
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A427F

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

Preview Lab → · Contrast checker → · Palette generator →

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