#2A287A#2A287A

#2A287A is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.6% C 0.135 H 277.3°. Best body text is #FFFFFF at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#2A287A
RGBrgb(42, 40, 122)
HSLhsl(241, 51%, 32%)
HSVhsv(241, 67%, 48%)
CMYKcmyk(65.6%, 67.2%, 0%, 52.2%)
CIE-LABlab(21.63, 27.91, -46.47)
CIE-LCHlch(21.63, 54.21, 300.99°)
OKLaboklab(33.6% 0.0173 -0.1339)
OKLCHoklch(33.6% 0.135 277.3)
XYZxyz(5.2254, 3.4145, 18.7923)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A287A #787A28
analogous
#284F7A #2A287A #53287A
triadic
#2A287A #7A2A28 #287A2A
tetradic
#2A287A #7A284F #787A28 #287A53
square
#2A287A #7A284F #787A28 #287A53
split-complementary
#2A287A #7A5328 #4F7A28
monochromatic
#0A0A1E #1A194C #2A287A #3A37A8 #5855C7

Accessibility & contrast

On white

12.48
#2A287A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2A287A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A287A
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A287A#FFFFFF#000000##FFFFFF
##2A287A1.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377D
Deuteranopia (green-blind)
#003078
Tritanopia (blue-blind)
#003D4D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2a287a;
/* rgb */ color: rgb(42, 40, 122);
/* oklch */ color: oklch(33.6% 0.135 277.3);
Tailwind
colors: {
  custom: {
    50: '#6e62a1',
    500: '#2a287a',
    950: '#000000',
  },
}
SCSS
$custom: #2a287a;
$custom-light: #6e62a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a287a",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 122
  },
  "hsl": {
    "h": 241.463,
    "s": 50.617,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33598,
    "c": 0.13503,
    "h": 277.3
  },
  "luminance": 0.03415
}

Semantic roles & 50–950 ramp

primary
#2A287A
secondary
#AAAC52
accent
#DA4ED7
background
#F7F5FA
surface
#EDEAF3
border
#C8C6CD
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2A287A

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

Preview Lab → · Contrast checker → · Palette generator →

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