#2A2286#2A2286

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

Color values

HEX#2A2286
RGBrgb(42, 34, 134)
HSLhsl(245, 60%, 33%)
HSVhsv(245, 75%, 53%)
CMYKcmyk(68.7%, 74.6%, 0%, 47.5%)
CIE-LABlab(21.42, 35.88, -54.40)
CIE-LCHlch(21.42, 65.17, 303.40°)
OKLaboklab(33.8% 0.0201 -0.1571)
OKLCHoklch(33.8% 0.158 277.3)
XYZxyz(5.8286, 3.3570, 22.8904)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2286 #7E8622
analogous
#224C86 #2A2286 #5C2286
triadic
#2A2286 #862A22 #22862A
tetradic
#2A2286 #86224C #7E8622 #22865C
square
#2A2286 #86224C #7E8622 #22865C
split-complementary
#2A2286 #865C22 #4C8622
monochromatic
#0B0924 #1B1655 #2A2286 #392EB7 #5A50D3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A2286#FFFFFF#000000##FFFFFF
##2A22861.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)
#003889
Deuteranopia (green-blind)
#002F84
Tritanopia (blue-blind)
#003E52
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2a2286;
/* rgb */ color: rgb(42, 34, 134);
/* oklch */ color: oklch(33.8% 0.158 277.3);
Tailwind
colors: {
  custom: {
    50: '#715faa',
    500: '#2a2286',
    950: '#000000',
  },
}
SCSS
$custom: #2a2286;
$custom-light: #715faa;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2286",
  "rgb": {
    "r": 42,
    "g": 34,
    "b": 134
  },
  "hsl": {
    "h": 244.8,
    "s": 59.524,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33802,
    "c": 0.15842,
    "h": 277.3
  },
  "luminance": 0.03358
}

Semantic roles & 50–950 ramp

primary
#2A2286
secondary
#AEB64E
accent
#E345D6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A2286

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

Preview Lab → · Contrast checker → · Palette generator →

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