#2A288F#2A288F

#2A288F is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.7% C 0.164 H 275.1°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#2A288F
RGBrgb(42, 40, 143)
HSLhsl(241, 56%, 36%)
HSVhsv(241, 72%, 56%)
CMYKcmyk(70.6%, 72%, 0%, 43.9%)
CIE-LABlab(23.65, 35.35, -56.36)
CIE-LCHlch(23.65, 66.53, 302.10°)
OKLaboklab(35.67% 0.0145 -0.1629)
OKLCHoklch(35.67% 0.164 275.1)
XYZxyz(6.6699, 3.9924, 26.4004)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A288F #8D8F28
analogous
#28598F #2A288F #5D288F
triadic
#2A288F #8F2A28 #288F2A
tetradic
#2A288F #8F2859 #8D8F28 #288F5D
square
#2A288F #8F2859 #8D8F28 #288F5D
split-complementary
#2A288F #8F5D28 #598F28
monochromatic
#0E0D2F #1C1B5F #2A288F #3835BF #615FD2

Accessibility & contrast

On white

11.68
#2A288F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2A288F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A288F
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A288F#FFFFFF#000000##FFFFFF
##2A288F1.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#00348D
Tritanopia (blue-blind)
#004458
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2a288f;
/* rgb */ color: rgb(42, 40, 143);
/* oklch */ color: oklch(35.7% 0.164 275.1);
Tailwind
colors: {
  custom: {
    50: '#7363b1',
    500: '#2a288f',
    950: '#000000',
  },
}
SCSS
$custom: #2a288f;
$custom-light: #7363b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a288f",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 143
  },
  "hsl": {
    "h": 241.165,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35669,
    "c": 0.16351,
    "h": 275.1
  },
  "luminance": 0.03993
}

Semantic roles & 50–950 ramp

primary
#2A288F
secondary
#B6B85B
accent
#E048DD
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2A288F

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

Preview Lab → · Contrast checker → · Palette generator →

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