#2A2198#2A2198

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

Color values

HEX#2A2198
RGBrgb(42, 33, 152)
HSLhsl(245, 64%, 36%)
HSVhsv(245, 78%, 60%)
CMYKcmyk(72.4%, 78.3%, 0%, 40.4%)
CIE-LABlab(23.16, 42.43, -62.72)
CIE-LCHlch(23.16, 75.73, 304.08°)
OKLaboklab(35.6% 0.0166 -0.1814)
OKLCHoklch(35.6% 0.182 275.2)
XYZxyz(7.1643, 3.8463, 30.0645)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2198 #8F9821
analogous
#215498 #2A2198 #662198
triadic
#2A2198 #982A21 #21982A
tetradic
#2A2198 #982154 #8F9821 #219866
square
#2A2198 #982154 #8F9821 #219866
split-complementary
#2A2198 #986621 #549821
monochromatic
#0E0B33 #1C1666 #2A2198 #382CCA #6259DB

Accessibility & contrast

On white

11.87
#2A2198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2A2198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2198
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2198#FFFFFF#000000##FFFFFF
##2A21981.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a2198;
/* rgb */ color: rgb(42, 33, 152);
/* oklch */ color: oklch(35.6% 0.182 275.2);
Tailwind
colors: {
  custom: {
    50: '#765fb8',
    500: '#2a2198',
    950: '#000000',
  },
}
SCSS
$custom: #2a2198;
$custom-light: #765fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2198",
  "rgb": {
    "r": 42,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 244.538,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35605,
    "c": 0.18213,
    "h": 275.2
  },
  "luminance": 0.03847
}

Semantic roles & 50–950 ramp

primary
#2A2198
secondary
#B7BF56
accent
#E740DB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2A2198

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

Preview Lab → · Contrast checker → · Palette generator →

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