#2A2188#2A2188

#2A2188 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.9% C 0.162 H 277.2°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#2A2188
RGBrgb(42, 33, 136)
HSLhsl(245, 61%, 33%)
HSVhsv(245, 76%, 53%)
CMYKcmyk(69.1%, 75.7%, 0%, 46.7%)
CIE-LABlab(21.42, 37.14, -55.66)
CIE-LCHlch(21.42, 66.91, 303.71°)
OKLaboklab(33.87% 0.0203 -0.1608)
OKLCHoklch(33.87% 0.162 277.2)
XYZxyz(5.9412, 3.3570, 23.6227)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2188 #7F8821
analogous
#214B88 #2A2188 #5D2188
triadic
#2A2188 #882A21 #21882A
tetradic
#2A2188 #88214B #7F8821 #21885D
square
#2A2188 #88214B #7F8821 #21885D
split-complementary
#2A2188 #885D21 #4B8821
monochromatic
#0C0925 #1B1557 #2A2188 #392DB9 #5B4FD4

Accessibility & contrast

On white

12.56
#2A2188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2A2188 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2188
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2188#FFFFFF#000000##FFFFFF
##2A21881.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388B
Deuteranopia (green-blind)
#002F86
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2a2188;
/* rgb */ color: rgb(42, 33, 136);
/* oklch */ color: oklch(33.9% 0.162 277.2);
Tailwind
colors: {
  custom: {
    50: '#725eac',
    500: '#2a2188',
    950: '#000000',
  },
}
SCSS
$custom: #2a2188;
$custom-light: #725eac;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2188",
  "rgb": {
    "r": 42,
    "g": 33,
    "b": 136
  },
  "hsl": {
    "h": 245.243,
    "s": 60.947,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33865,
    "c": 0.16207,
    "h": 277.2
  },
  "luminance": 0.03358
}

Semantic roles & 50–950 ramp

primary
#2A2188
secondary
#AEB84D
accent
#E444D6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A2188

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

Preview Lab → · Contrast checker → · Palette generator →

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