#2A2096#2A2096

#2A2096 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.3% C 0.181 H 275.6°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#2A2096
RGBrgb(42, 32, 150)
HSLhsl(245, 65%, 36%)
HSVhsv(245, 79%, 59%)
CMYKcmyk(72%, 78.7%, 0%, 41.2%)
CIE-LABlab(22.75, 42.32, -62.17)
CIE-LCHlch(22.75, 75.21, 304.24°)
OKLaboklab(35.25% 0.0176 -0.1797)
OKLCHoklch(35.25% 0.181 275.6)
XYZxyz(6.9746, 3.7266, 29.2000)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2096 #8C9620
analogous
#205196 #2A2096 #652096
triadic
#2A2096 #962A20 #20962A
tetradic
#2A2096 #962051 #8C9620 #209665
square
#2A2096 #962051 #8C9620 #209665
split-complementary
#2A2096 #966520 #519620
monochromatic
#0E0A31 #1C1564 #2A2096 #382BC8 #6156DB

Accessibility & contrast

On white

12.03
#2A2096 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2A2096 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2096
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2096#FFFFFF#000000##FFFFFF
##2A20961.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B99
Deuteranopia (green-blind)
#003194
Tritanopia (blue-blind)
#00435A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2a2096;
/* rgb */ color: rgb(42, 32, 150);
/* oklch */ color: oklch(35.3% 0.181 275.6);
Tailwind
colors: {
  custom: {
    50: '#755eb6',
    500: '#2a2096',
    950: '#000000',
  },
}
SCSS
$custom: #2a2096;
$custom-light: #755eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2096",
  "rgb": {
    "r": 42,
    "g": 32,
    "b": 150
  },
  "hsl": {
    "h": 245.085,
    "s": 64.835,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35252,
    "c": 0.18061,
    "h": 275.6
  },
  "luminance": 0.03727
}

Semantic roles & 50–950 ramp

primary
#2A2096
secondary
#B5BE53
accent
#E840DA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2A2096

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

Preview Lab → · Contrast checker → · Palette generator →

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