#2A189B#2A189B

#2A189B is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.9% C 0.193 H 275.8°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#2A189B
RGBrgb(42, 24, 155)
HSLhsl(248, 73%, 35%)
HSVhsv(248, 85%, 61%)
CMYKcmyk(72.9%, 84.5%, 0%, 39.2%)
CIE-LABlab(21.99, 47.79, -66.51)
CIE-LCHlch(21.99, 81.90, 305.70°)
OKLaboklab(34.89% 0.0195 -0.1922)
OKLCHoklch(34.89% 0.193 275.8)
XYZxyz(7.1959, 3.5114, 31.3025)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A189B #899B18
analogous
#18489B #2A189B #6B189B
triadic
#2A189B #9B2A18 #189B2A
tetradic
#2A189B #9B1848 #899B18 #189B6B
square
#2A189B #9B1848 #899B18 #189B6B
split-complementary
#2A189B #9B6B18 #489B18
monochromatic
#0D0831 #1C1066 #2A189B #3820D0 #5F4AE3

Accessibility & contrast

On white

12.34
#2A189B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2A189B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A189B
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A189B#FFFFFF#000000##FFFFFF
##2A189B1.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A9E
Deuteranopia (green-blind)
#002F99
Tritanopia (blue-blind)
#00425C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2a189b;
/* rgb */ color: rgb(42, 24, 155);
/* oklch */ color: oklch(34.9% 0.193 275.8);
Tailwind
colors: {
  custom: {
    50: '#775aba',
    500: '#2a189b',
    950: '#000000',
  },
}
SCSS
$custom: #2a189b;
$custom-light: #775aba;
$custom-dark: #000000;
JSON
{
  "hex": "#2a189b",
  "rgb": {
    "r": 42,
    "g": 24,
    "b": 155
  },
  "hsl": {
    "h": 248.244,
    "s": 73.184,
    "l": 35.098
  },
  "oklch": {
    "l": 0.34893,
    "c": 0.1932,
    "h": 275.8
  },
  "luminance": 0.03512
}

Semantic roles & 50–950 ramp

primary
#2A189B
secondary
#B4C54A
accent
#F038D7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2A189B

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

Preview Lab → · Contrast checker → · Palette generator →

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