#2A2186#2A2186

#2A2186 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.7% C 0.160 H 277.5°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#2A2186
RGBrgb(42, 33, 134)
HSLhsl(245, 60%, 33%)
HSVhsv(245, 75%, 53%)
CMYKcmyk(68.7%, 75.4%, 0%, 47.5%)
CIE-LABlab(21.21, 36.47, -54.75)
CIE-LCHlch(21.21, 65.78, 303.66°)
OKLaboklab(33.65% 0.0207 -0.1582)
OKLCHoklch(33.65% 0.16 277.5)
XYZxyz(5.8004, 3.3007, 22.8811)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2186 #7D8621
analogous
#214A86 #2A2186 #5D2186
triadic
#2A2186 #862A21 #21862A
tetradic
#2A2186 #86214A #7D8621 #21865D
square
#2A2186 #86214A #7D8621 #21865D
split-complementary
#2A2186 #865D21 #4A8621
monochromatic
#0B0924 #1B1555 #2A2186 #392DB7 #5A4ED3

Accessibility & contrast

On white

12.65
#2A2186 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2A2186 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2186
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2186#FFFFFF#000000##FFFFFF
##2A21861.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003789
Deuteranopia (green-blind)
#002F84
Tritanopia (blue-blind)
#003E51
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2a2186;
/* rgb */ color: rgb(42, 33, 134);
/* oklch */ color: oklch(33.7% 0.160 277.5);
Tailwind
colors: {
  custom: {
    50: '#715eaa',
    500: '#2a2186',
    950: '#000000',
  },
}
SCSS
$custom: #2a2186;
$custom-light: #715eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2186",
  "rgb": {
    "r": 42,
    "g": 33,
    "b": 134
  },
  "hsl": {
    "h": 245.347,
    "s": 60.479,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33652,
    "c": 0.1595,
    "h": 277.5
  },
  "luminance": 0.03301
}

Semantic roles & 50–950 ramp

primary
#2A2186
secondary
#ADB74C
accent
#E444D5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A2186

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

Preview Lab → · Contrast checker → · Palette generator →

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