#2A2097#2A2097

#2A2097 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.4% C 0.182 H 275.5°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#2A2097
RGBrgb(42, 32, 151)
HSLhsl(245, 65%, 36%)
HSVhsv(245, 79%, 59%)
CMYKcmyk(72.2%, 78.8%, 0%, 40.8%)
CIE-LABlab(22.86, 42.64, -62.60)
CIE-LCHlch(22.86, 75.75, 304.26°)
OKLaboklab(35.36% 0.0173 -0.181)
OKLCHoklch(35.36% 0.182 275.5)
XYZxyz(7.0554, 3.7590, 29.6259)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2097 #8D9720
analogous
#205197 #2A2097 #652097
triadic
#2A2097 #972A20 #20972A
tetradic
#2A2097 #972051 #8D9720 #209765
square
#2A2097 #972051 #8D9720 #209765
split-complementary
#2A2097 #976520 #519720
monochromatic
#0E0B32 #1C1564 #2A2097 #382BC9 #6156DB

Accessibility & contrast

On white

11.99
#2A2097 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2097
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2097#FFFFFF#000000##FFFFFF
##2A20971.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9A
Deuteranopia (green-blind)
#003195
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2a2097;
/* rgb */ color: rgb(42, 32, 151);
/* oklch */ color: oklch(35.4% 0.182 275.5);
Tailwind
colors: {
  custom: {
    50: '#755eb7',
    500: '#2a2097',
    950: '#000000',
  },
}
SCSS
$custom: #2a2097;
$custom-light: #755eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2097",
  "rgb": {
    "r": 42,
    "g": 32,
    "b": 151
  },
  "hsl": {
    "h": 245.042,
    "s": 65.027,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35363,
    "c": 0.18184,
    "h": 275.5
  },
  "luminance": 0.0376
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A2097

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

Preview Lab → · Contrast checker → · Palette generator →

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