#2A289A#2A289A

#2A289A is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.8% C 0.178 H 274.1°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#2A289A
RGBrgb(42, 40, 154)
HSLhsl(241, 59%, 38%)
HSVhsv(241, 74%, 60%)
CMYKcmyk(72.7%, 74%, 0%, 39.6%)
CIE-LABlab(24.77, 39.14, -61.28)
CIE-LCHlch(24.77, 72.72, 302.57°)
OKLaboklab(36.81% 0.0126 -0.1772)
OKLCHoklch(36.81% 0.178 274.1)
XYZxyz(7.5444, 4.3422, 31.0061)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A289A #989A28
analogous
#285F9A #2A289A #63289A
triadic
#2A289A #9A2A28 #289A2A
tetradic
#2A289A #9A285F #989A28 #289A63
square
#2A289A #9A285F #989A28 #289A63
split-complementary
#2A289A #9A6328 #5F9A28
monochromatic
#100F39 #1D1B69 #2A289A #3735CA #6765D7

Accessibility & contrast

On white

11.24
#2A289A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2A289A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A289A
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A289A#FFFFFF#000000##FFFFFF
##2A289A1.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409D
Deuteranopia (green-blind)
#003598
Tritanopia (blue-blind)
#00485E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2a289a;
/* rgb */ color: rgb(42, 40, 154);
/* oklch */ color: oklch(36.8% 0.178 274.1);
Tailwind
colors: {
  custom: {
    50: '#7563b9',
    500: '#2a289a',
    950: '#000000',
  },
}
SCSS
$custom: #2a289a;
$custom-light: #7563b9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a289a",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 154
  },
  "hsl": {
    "h": 241.053,
    "s": 58.763,
    "l": 38.039
  },
  "oklch": {
    "l": 0.36812,
    "c": 0.17769,
    "h": 274.1
  },
  "luminance": 0.04343
}

Semantic roles & 50–950 ramp

primary
#2A289A
secondary
#BBBD61
accent
#E246DF
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2A289A

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

Preview Lab → · Contrast checker → · Palette generator →

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