#2A2187#2A2187

#2A2187 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.8% C 0.161 H 277.3°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#2A2187
RGBrgb(42, 33, 135)
HSLhsl(245, 61%, 33%)
HSVhsv(245, 76%, 53%)
CMYKcmyk(68.9%, 75.6%, 0%, 47.1%)
CIE-LABlab(21.32, 36.80, -55.21)
CIE-LCHlch(21.32, 66.35, 303.69°)
OKLaboklab(33.76% 0.0205 -0.1595)
OKLCHoklch(33.76% 0.161 277.3)
XYZxyz(5.8705, 3.3287, 23.2501)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2187 #7E8721
analogous
#214B87 #2A2187 #5D2187
triadic
#2A2187 #872A21 #21872A
tetradic
#2A2187 #87214B #7E8721 #21875D
square
#2A2187 #87214B #7E8721 #21875D
split-complementary
#2A2187 #875D21 #4B8721
monochromatic
#0B0925 #1B1556 #2A2187 #392DB8 #5A4FD4

Accessibility & contrast

On white

12.61
#2A2187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2187
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2187#FFFFFF#000000##FFFFFF
##2A21871.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378A
Deuteranopia (green-blind)
#002F85
Tritanopia (blue-blind)
#003E52
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2a2187;
/* rgb */ color: rgb(42, 33, 135);
/* oklch */ color: oklch(33.8% 0.161 277.3);
Tailwind
colors: {
  custom: {
    50: '#725eab',
    500: '#2a2187',
    950: '#000000',
  },
}
SCSS
$custom: #2a2187;
$custom-light: #725eab;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2187",
  "rgb": {
    "r": 42,
    "g": 33,
    "b": 135
  },
  "hsl": {
    "h": 245.294,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33758,
    "c": 0.16078,
    "h": 277.3
  },
  "luminance": 0.03329
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A2187

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

Preview Lab → · Contrast checker → · Palette generator →

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