#2A2086#2A2086

#2A2086 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.5% C 0.161 H 277.6°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#2A2086
RGBrgb(42, 32, 134)
HSLhsl(246, 61%, 33%)
HSVhsv(246, 76%, 53%)
CMYKcmyk(68.7%, 76.1%, 0%, 47.5%)
CIE-LABlab(21.00, 37.05, -55.09)
CIE-LCHlch(21.00, 66.39, 303.92°)
OKLaboklab(33.51% 0.0214 -0.1591)
OKLCHoklch(33.51% 0.161 277.6)
XYZxyz(5.7730, 3.2460, 22.8719)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2086 #7C8620
analogous
#204986 #2A2086 #5D2086
triadic
#2A2086 #862A20 #20862A
tetradic
#2A2086 #862049 #7C8620 #20865D
square
#2A2086 #862049 #7C8620 #20865D
split-complementary
#2A2086 #865D20 #498620
monochromatic
#0B0823 #1B1455 #2A2086 #392CB7 #594CD4

Accessibility & contrast

On white

12.73
#2A2086 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2A2086 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2086
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2086#FFFFFF#000000##FFFFFF
##2A20861.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003789
Deuteranopia (green-blind)
#002E84
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2a2086;
/* rgb */ color: rgb(42, 32, 134);
/* oklch */ color: oklch(33.5% 0.161 277.6);
Tailwind
colors: {
  custom: {
    50: '#715daa',
    500: '#2a2086',
    950: '#000000',
  },
}
SCSS
$custom: #2a2086;
$custom-light: #715daa;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2086",
  "rgb": {
    "r": 42,
    "g": 32,
    "b": 134
  },
  "hsl": {
    "h": 245.882,
    "s": 61.446,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33506,
    "c": 0.16056,
    "h": 277.6
  },
  "luminance": 0.03246
}

Semantic roles & 50–950 ramp

primary
#2A2086
secondary
#ADB74B
accent
#E543D5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A2086

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

Preview Lab → · Contrast checker → · Palette generator →

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