#2A287E#2A287E

#2A287E is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.0% C 0.141 H 276.9°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#2A287E
RGBrgb(42, 40, 126)
HSLhsl(241, 52%, 33%)
HSVhsv(241, 68%, 49%)
CMYKcmyk(66.7%, 68.3%, 0%, 50.6%)
CIE-LABlab(22.00, 29.34, -48.41)
CIE-LCHlch(22.00, 56.60, 301.22°)
OKLaboklab(33.98% 0.0169 -0.1396)
OKLCHoklch(33.98% 0.141 276.9)
XYZxyz(5.4783, 3.5157, 20.1245)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A287E #7C7E28
analogous
#28517E #2A287E #55287E
triadic
#2A287E #7E2A28 #287E2A
tetradic
#2A287E #7E2851 #7C7E28 #287E55
square
#2A287E #7E2851 #7C7E28 #287E55
split-complementary
#2A287E #7E5528 #517E28
monochromatic
#0B0B21 #1B1950 #2A287E #3937AC #5957CA

Accessibility & contrast

On white

12.33
#2A287E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2A287E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A287E
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A287E#FFFFFF#000000##FFFFFF
##2A287E1.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003881
Deuteranopia (green-blind)
#00317C
Tritanopia (blue-blind)
#003E4F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2a287e;
/* rgb */ color: rgb(42, 40, 126);
/* oklch */ color: oklch(34.0% 0.141 276.9);
Tailwind
colors: {
  custom: {
    50: '#6f62a4',
    500: '#2a287e',
    950: '#000000',
  },
}
SCSS
$custom: #2a287e;
$custom-light: #6f62a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a287e",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 126
  },
  "hsl": {
    "h": 241.395,
    "s": 51.807,
    "l": 32.549
  },
  "oklch": {
    "l": 0.3398,
    "c": 0.14061,
    "h": 276.9
  },
  "luminance": 0.03516
}

Semantic roles & 50–950 ramp

primary
#2A287E
secondary
#ADAF53
accent
#DB4DD8
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2A287E

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

Preview Lab → · Contrast checker → · Palette generator →

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