#2A4287#2A4287

#2A4287 is a dark, moderate blue. Relative luminance 0.061; OKLCH L 40.0% C 0.119 H 266.6°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#2A4287
RGBrgb(42, 66, 135)
HSLhsl(225, 53%, 35%)
HSVhsv(225, 69%, 53%)
CMYKcmyk(68.9%, 51.1%, 0%, 47.1%)
CIE-LABlab(29.76, 15.07, -41.45)
CIE-LCHlch(29.76, 44.10, 289.97°)
OKLaboklab(39.99% -0.0071 -0.1189)
OKLCHoklch(39.99% 0.119 266.6)
XYZxyz(7.2747, 6.1372, 23.7182)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4287 #876F2A
analogous
#2A7187 #2A4287 #412A87
triadic
#2A4287 #872A42 #42872A
tetradic
#2A4287 #872A71 #876F2A #2A8741
square
#2A4287 #872A71 #876F2A #2A8741
split-complementary
#2A4287 #87412A #71872A
monochromatic
#0D142A #1B2B58 #2A4287 #3959B6 #5E7BCD

Accessibility & contrast

On white

9.43
#2A4287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#2A4287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4287
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4287#FFFFFF#000000##FFFFFF
##2A42871.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4B8A
Deuteranopia (green-blind)
#014286
Tritanopia (blue-blind)
#00525E
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2a4287;
/* rgb */ color: rgb(42, 66, 135);
/* oklch */ color: oklch(40.0% 0.119 266.6);
Tailwind
colors: {
  custom: {
    50: '#6f75aa',
    500: '#2a4287',
    950: '#000000',
  },
}
SCSS
$custom: #2a4287;
$custom-light: #6f75aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4287",
  "rgb": {
    "r": 42,
    "g": 66,
    "b": 135
  },
  "hsl": {
    "h": 224.516,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.39985,
    "c": 0.11907,
    "h": 266.6
  },
  "luminance": 0.06138
}

Semantic roles & 50–950 ramp

primary
#2A4287
secondary
#B39C5A
accent
#B74CDC
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2A4287

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

Preview Lab → · Contrast checker → · Palette generator →

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