#2A288E#2A288E

#2A288E is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.6% C 0.162 H 275.2°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#2A288E
RGBrgb(42, 40, 142)
HSLhsl(241, 56%, 36%)
HSVhsv(241, 72%, 56%)
CMYKcmyk(70.4%, 71.8%, 0%, 44.3%)
CIE-LABlab(23.55, 35.00, -55.90)
CIE-LCHlch(23.55, 65.95, 302.05°)
OKLaboklab(35.57% 0.0147 -0.1615)
OKLCHoklch(35.57% 0.162 275.2)
XYZxyz(6.5945, 3.9622, 26.0032)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A288E #8C8E28
analogous
#28598E #2A288E #5D288E
triadic
#2A288E #8E2A28 #288E2A
tetradic
#2A288E #8E2859 #8C8E28 #288E5D
square
#2A288E #8E2859 #8C8E28 #288E5D
split-complementary
#2A288E #8E5D28 #598E28
monochromatic
#0E0D2F #1C1B5E #2A288E #3835BE #615FD2

Accessibility & contrast

On white

11.71
#2A288E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2A288E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A288E
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A288E#FFFFFF#000000##FFFFFF
##2A288E1.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D91
Deuteranopia (green-blind)
#00338C
Tritanopia (blue-blind)
#004458
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2a288e;
/* rgb */ color: rgb(42, 40, 142);
/* oklch */ color: oklch(35.6% 0.162 275.2);
Tailwind
colors: {
  custom: {
    50: '#7363b0',
    500: '#2a288e',
    950: '#000000',
  },
}
SCSS
$custom: #2a288e;
$custom-light: #7363b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a288e",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 142
  },
  "hsl": {
    "h": 241.176,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35566,
    "c": 0.1622,
    "h": 275.2
  },
  "luminance": 0.03963
}

Semantic roles & 50–950 ramp

primary
#2A288E
secondary
#B5B75B
accent
#DF48DC
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2A288E

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

Preview Lab → · Contrast checker → · Palette generator →

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