#2A20A0#2A20A0

#2A20A0 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.4% C 0.193 H 274.5°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#2A20A0
RGBrgb(42, 32, 160)
HSLhsl(245, 67%, 38%)
HSVhsv(245, 80%, 63%)
CMYKcmyk(73.8%, 80%, 0%, 37.3%)
CIE-LABlab(23.88, 45.53, -66.43)
CIE-LCHlch(23.88, 80.53, 304.43°)
OKLaboklab(36.38% 0.0151 -0.1921)
OKLCHoklch(36.38% 0.193 274.5)
XYZxyz(7.8144, 4.0626, 33.6232)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A20A0 #96A020
analogous
#2056A0 #2A20A0 #6A20A0
triadic
#2A20A0 #A02A20 #20A02A
tetradic
#2A20A0 #A02056 #96A020 #20A06A
square
#2A20A0 #A02056 #96A020 #20A06A
split-complementary
#2A20A0 #A06A20 #56A020
monochromatic
#0F0C3A #1D166D #2A20A0 #372AD3 #665CDE

Accessibility & contrast

On white

11.59
#2A20A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2A20A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A20A0
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A20A0#FFFFFF#000000##FFFFFF
##2A20A01.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA4
Deuteranopia (green-blind)
#00339E
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2a20a0;
/* rgb */ color: rgb(42, 32, 160);
/* oklch */ color: oklch(36.4% 0.193 274.5);
Tailwind
colors: {
  custom: {
    50: '#785fbd',
    500: '#2a20a0',
    950: '#000000',
  },
}
SCSS
$custom: #2a20a0;
$custom-light: #785fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a20a0",
  "rgb": {
    "r": 42,
    "g": 32,
    "b": 160
  },
  "hsl": {
    "h": 244.688,
    "s": 66.667,
    "l": 37.647
  },
  "oklch": {
    "l": 0.36375,
    "c": 0.19272,
    "h": 274.5
  },
  "luminance": 0.04063
}

Semantic roles & 50–950 ramp

primary
#2A20A0
secondary
#BAC359
accent
#EA3EDC
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2A20A0

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

Preview Lab → · Contrast checker → · Palette generator →

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