#2A2272#2A2272

#2A2272 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.8% C 0.132 H 280.3°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#2A2272
RGBrgb(42, 34, 114)
HSLhsl(246, 54%, 29%)
HSVhsv(246, 70%, 45%)
CMYKcmyk(63.2%, 70.2%, 0%, 55.3%)
CIE-LABlab(19.44, 28.98, -44.94)
CIE-LCHlch(19.44, 53.47, 302.82°)
OKLaboklab(31.78% 0.0236 -0.1294)
OKLCHoklch(31.78% 0.132 280.3)
XYZxyz(4.5632, 2.8509, 16.2261)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2272 #6A7222
analogous
#224272 #2A2272 #522272
triadic
#2A2272 #722A22 #22722A
tetradic
#2A2272 #722242 #6A7222 #227252
square
#2A2272 #722242 #6A7222 #227252
split-complementary
#2A2272 #725222 #427222
monochromatic
#090718 #191443 #2A2272 #3B30A1 #5346C8

Accessibility & contrast

On white

13.37
#2A2272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2A2272 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2272
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2272#FFFFFF#000000##FFFFFF
##2A22721.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003274
Deuteranopia (green-blind)
#002C70
Tritanopia (blue-blind)
#003747
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2a2272;
/* rgb */ color: rgb(42, 34, 114);
/* oklch */ color: oklch(31.8% 0.132 280.3);
Tailwind
colors: {
  custom: {
    50: '#6d5e9b',
    500: '#2a2272',
    950: '#000000',
  },
}
SCSS
$custom: #2a2272;
$custom-light: #6d5e9b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2272",
  "rgb": {
    "r": 42,
    "g": 34,
    "b": 114
  },
  "hsl": {
    "h": 246,
    "s": 54.054,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31776,
    "c": 0.13158,
    "h": 280.3
  },
  "luminance": 0.02851
}

Semantic roles & 50–950 ramp

primary
#2A2272
secondary
#9CA54B
accent
#DD4ACF
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #2A2272

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

Preview Lab → · Contrast checker → · Palette generator →

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