#2A2199#2A2199

#2A2199 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.7% C 0.183 H 275.1°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#2A2199
RGBrgb(42, 33, 153)
HSLhsl(245, 65%, 36%)
HSVhsv(245, 78%, 60%)
CMYKcmyk(72.5%, 78.4%, 0%, 40%)
CIE-LABlab(23.27, 42.76, -63.15)
CIE-LCHlch(23.27, 76.27, 304.10°)
OKLaboklab(35.72% 0.0164 -0.1826)
OKLCHoklch(35.72% 0.183 275.1)
XYZxyz(7.2466, 3.8792, 30.4977)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2199 #909921
analogous
#215499 #2A2199 #662199
triadic
#2A2199 #992A21 #21992A
tetradic
#2A2199 #992154 #909921 #219966
square
#2A2199 #992154 #909921 #219966
split-complementary
#2A2199 #996621 #549921
monochromatic
#0E0B34 #1C1667 #2A2199 #382CCB #6359DB

Accessibility & contrast

On white

11.82
#2A2199 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2A2199 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2199
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2199#FFFFFF#000000##FFFFFF
##2A21991.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9C
Deuteranopia (green-blind)
#003297
Tritanopia (blue-blind)
#00455C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2a2199;
/* rgb */ color: rgb(42, 33, 153);
/* oklch */ color: oklch(35.7% 0.183 275.1);
Tailwind
colors: {
  custom: {
    50: '#765fb8',
    500: '#2a2199',
    950: '#000000',
  },
}
SCSS
$custom: #2a2199;
$custom-light: #765fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2199",
  "rgb": {
    "r": 42,
    "g": 33,
    "b": 153
  },
  "hsl": {
    "h": 244.5,
    "s": 64.516,
    "l": 36.471
  },
  "oklch": {
    "l": 0.35716,
    "c": 0.18335,
    "h": 275.1
  },
  "luminance": 0.0388
}

Semantic roles & 50–950 ramp

primary
#2A2199
secondary
#B7BF56
accent
#E840DB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2A2199

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

Preview Lab → · Contrast checker → · Palette generator →

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