#2A288D#2A288D

#2A288D is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.5% C 0.161 H 275.3°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#2A288D
RGBrgb(42, 40, 141)
HSLhsl(241, 56%, 35%)
HSVhsv(241, 72%, 55%)
CMYKcmyk(70.2%, 71.6%, 0%, 44.7%)
CIE-LABlab(23.45, 34.65, -55.44)
CIE-LCHlch(23.45, 65.38, 302.00°)
OKLaboklab(35.47% 0.0148 -0.1602)
OKLCHoklch(35.47% 0.161 275.3)
XYZxyz(6.5198, 3.9323, 25.6096)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A288D #8B8D28
analogous
#28588D #2A288D #5C288D
triadic
#2A288D #8D2A28 #288D2A
tetradic
#2A288D #8D2858 #8B8D28 #288D5C
square
#2A288D #8D2858 #8B8D28 #288D5C
split-complementary
#2A288D #8D5C28 #588D28
monochromatic
#0E0D2E #1C1A5D #2A288D #3836BD #605ED1

Accessibility & contrast

On white

11.75
#2A288D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A288D
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A288D#FFFFFF#000000##FFFFFF
##2A288D1.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C90
Deuteranopia (green-blind)
#00338B
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2a288d;
/* rgb */ color: rgb(42, 40, 141);
/* oklch */ color: oklch(35.5% 0.161 275.3);
Tailwind
colors: {
  custom: {
    50: '#7263af',
    500: '#2a288d',
    950: '#000000',
  },
}
SCSS
$custom: #2a288d;
$custom-light: #7263af;
$custom-dark: #000000;
JSON
{
  "hex": "#2a288d",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 141
  },
  "hsl": {
    "h": 241.188,
    "s": 55.801,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35465,
    "c": 0.16088,
    "h": 275.3
  },
  "luminance": 0.03933
}

Semantic roles & 50–950 ramp

primary
#2A288D
secondary
#B5B75A
accent
#DF49DC
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#090511
muted
#7B7980

Preview Lab

Preview with #2A288D

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

Preview Lab → · Contrast checker → · Palette generator →

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