#2A287F#2A287F

#2A287F is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.1% C 0.142 H 276.8°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#2A287F
RGBrgb(42, 40, 127)
HSLhsl(241, 52%, 33%)
HSVhsv(241, 69%, 50%)
CMYKcmyk(66.9%, 68.5%, 0%, 50.2%)
CIE-LABlab(22.09, 29.70, -48.89)
CIE-LCHlch(22.09, 57.20, 301.28°)
OKLaboklab(34.08% 0.0167 -0.141)
OKLCHoklch(34.08% 0.142 276.8)
XYZxyz(5.5432, 3.5417, 20.4661)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A287F #7D7F28
analogous
#28527F #2A287F #55287F
triadic
#2A287F #7F2A28 #287F2A
tetradic
#2A287F #7F2852 #7D7F28 #287F55
square
#2A287F #7F2852 #7D7F28 #287F55
split-complementary
#2A287F #7F5528 #527F28
monochromatic
#0B0B22 #1B1950 #2A287F #3937AE #5A57CA

Accessibility & contrast

On white

12.29
#2A287F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2A287F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A287F
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A287F#FFFFFF#000000##FFFFFF
##2A287F1.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#00317D
Tritanopia (blue-blind)
#003F50
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2a287f;
/* rgb */ color: rgb(42, 40, 127);
/* oklch */ color: oklch(34.1% 0.142 276.8);
Tailwind
colors: {
  custom: {
    50: '#6f62a5',
    500: '#2a287f',
    950: '#000000',
  },
}
SCSS
$custom: #2a287f;
$custom-light: #6f62a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a287f",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 127
  },
  "hsl": {
    "h": 241.379,
    "s": 52.096,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34076,
    "c": 0.142,
    "h": 276.8
  },
  "luminance": 0.03542
}

Semantic roles & 50–950 ramp

primary
#2A287F
secondary
#ADAF54
accent
#DC4CD8
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2A287F

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

Preview Lab → · Contrast checker → · Palette generator →

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