#2A289B#2A289B

#2A289B is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.9% C 0.179 H 274.0°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#2A289B
RGBrgb(42, 40, 155)
HSLhsl(241, 59%, 38%)
HSVhsv(241, 74%, 61%)
CMYKcmyk(72.9%, 74.2%, 0%, 39.2%)
CIE-LABlab(24.88, 39.48, -61.72)
CIE-LCHlch(24.88, 73.27, 302.61°)
OKLaboklab(36.92% 0.0124 -0.1785)
OKLCHoklch(36.92% 0.179 274)
XYZxyz(7.6281, 4.3756, 31.4466)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A289B #999B28
analogous
#28609B #2A289B #63289B
triadic
#2A289B #9B2A28 #289B2A
tetradic
#2A289B #9B2860 #999B28 #289B63
square
#2A289B #9B2860 #999B28 #289B63
split-complementary
#2A289B #9B6328 #609B28
monochromatic
#100F3A #1D1B6A #2A289B #3835CB #6866D7

Accessibility & contrast

On white

11.20
#2A289B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2A289B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A289B
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A289B#FFFFFF#000000##FFFFFF
##2A289B1.0011.201.8811.20
#FFFFFF11.201.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409E
Deuteranopia (green-blind)
#003699
Tritanopia (blue-blind)
#00495F
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2a289b;
/* rgb */ color: rgb(42, 40, 155);
/* oklch */ color: oklch(36.9% 0.179 274.0);
Tailwind
colors: {
  custom: {
    50: '#7663ba',
    500: '#2a289b',
    950: '#000000',
  },
}
SCSS
$custom: #2a289b;
$custom-light: #7663ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2a289b",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 155
  },
  "hsl": {
    "h": 241.043,
    "s": 58.974,
    "l": 38.235
  },
  "oklch": {
    "l": 0.36917,
    "c": 0.17895,
    "h": 274
  },
  "luminance": 0.04376
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A289B

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

Preview Lab → · Contrast checker → · Palette generator →

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