#2A288B#2A288B

#2A288B is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.3% C 0.158 H 275.5°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#2A288B
RGBrgb(42, 40, 139)
HSLhsl(241, 55%, 35%)
HSVhsv(241, 71%, 55%)
CMYKcmyk(69.8%, 71.2%, 0%, 45.5%)
CIE-LABlab(23.25, 33.95, -54.53)
CIE-LCHlch(23.25, 64.23, 301.91°)
OKLaboklab(35.26% 0.0151 -0.1575)
OKLCHoklch(35.26% 0.158 275.5)
XYZxyz(6.3723, 3.8733, 24.8329)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A288B #898B28
analogous
#28588B #2A288B #5B288B
triadic
#2A288B #8B2A28 #288B2A
tetradic
#2A288B #8B2858 #898B28 #288B5B
square
#2A288B #8B2858 #898B28 #288B5B
split-complementary
#2A288B #8B5B28 #588B28
monochromatic
#0D0D2C #1C1A5B #2A288B #3836BB #5F5DD0

Accessibility & contrast

On white

11.83
#2A288B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2A288B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A288B
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A288B#FFFFFF#000000##FFFFFF
##2A288B1.0011.831.7711.83
#FFFFFF11.831.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8E
Deuteranopia (green-blind)
#003389
Tritanopia (blue-blind)
#004356
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2a288b;
/* rgb */ color: rgb(42, 40, 139);
/* oklch */ color: oklch(35.3% 0.158 275.5);
Tailwind
colors: {
  custom: {
    50: '#7263ae',
    500: '#2a288b',
    950: '#000000',
  },
}
SCSS
$custom: #2a288b;
$custom-light: #7263ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2a288b",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 139
  },
  "hsl": {
    "h": 241.212,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35262,
    "c": 0.15823,
    "h": 275.5
  },
  "luminance": 0.03874
}

Semantic roles & 50–950 ramp

primary
#2A288B
secondary
#B4B659
accent
#DF49DC
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2A288B

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

Preview Lab → · Contrast checker → · Palette generator →

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