#2D22A8#2D22A8

#2D22A8 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.7% C 0.200 H 274.7°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#2D22A8
RGBrgb(45, 34, 168)
HSLhsl(245, 66%, 40%)
HSVhsv(245, 80%, 66%)
CMYKcmyk(73.2%, 79.8%, 0%, 34.1%)
CIE-LABlab(25.35, 47.29, -68.85)
CIE-LCHlch(25.35, 83.52, 304.49°)
OKLaboklab(37.72% 0.0163 -0.1991)
OKLCHoklch(37.72% 0.2 274.7)
XYZxyz(8.7198, 4.5282, 37.4527)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D22A8 #9DA822
analogous
#225AA8 #2D22A8 #7022A8
triadic
#2D22A8 #A82D22 #22A82D
tetradic
#2D22A8 #A8225A #9DA822 #22A870
square
#2D22A8 #A8225A #9DA822 #22A870
split-complementary
#2D22A8 #A87022 #5AA822
monochromatic
#120D42 #1F1875 #2D22A8 #3F32D5 #6F65E0

Accessibility & contrast

On white

11.02
#2D22A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2D22A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D22A8
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D22A8#FFFFFF#000000##FFFFFF
##2D22A81.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AC
Deuteranopia (green-blind)
#0036A6
Tritanopia (blue-blind)
#004B65
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2d22a8;
/* rgb */ color: rgb(45, 34, 168);
/* oklch */ color: oklch(37.7% 0.200 274.7);
Tailwind
colors: {
  custom: {
    50: '#7a61c3',
    500: '#2d22a8',
    950: '#000000',
  },
}
SCSS
$custom: #2d22a8;
$custom-light: #7a61c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2d22a8",
  "rgb": {
    "r": 45,
    "g": 34,
    "b": 168
  },
  "hsl": {
    "h": 244.925,
    "s": 66.337,
    "l": 39.608
  },
  "oklch": {
    "l": 0.37721,
    "c": 0.19976,
    "h": 274.7
  },
  "luminance": 0.04529
}

Semantic roles & 50–950 ramp

primary
#2D22A8
secondary
#BDC561
accent
#E93FDB
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2D22A8

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

Preview Lab → · Contrast checker → · Palette generator →

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