#2D22A6#2D22A6

#2D22A6 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.5% C 0.197 H 274.9°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#2D22A6
RGBrgb(45, 34, 166)
HSLhsl(245, 66%, 39%)
HSVhsv(245, 80%, 65%)
CMYKcmyk(72.9%, 79.5%, 0%, 34.9%)
CIE-LABlab(25.12, 46.66, -68.01)
CIE-LCHlch(25.12, 82.48, 304.45°)
OKLaboklab(37.5% 0.0168 -0.1967)
OKLCHoklch(37.5% 0.197 274.9)
XYZxyz(8.5349, 4.4543, 36.4790)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D22A6 #9BA622
analogous
#2259A6 #2D22A6 #6F22A6
triadic
#2D22A6 #A62D22 #22A62D
tetradic
#2D22A6 #A62259 #9BA622 #22A66F
square
#2D22A6 #A62259 #9BA622 #22A66F
split-complementary
#2D22A6 #A66F22 #59A622
monochromatic
#110D40 #1F1873 #2D22A6 #3E30D5 #6E63DF

Accessibility & contrast

On white

11.11
#2D22A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#2D22A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D22A6
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D22A6#FFFFFF#000000##FFFFFF
##2D22A61.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AA
Deuteranopia (green-blind)
#0035A4
Tritanopia (blue-blind)
#004A64
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2d22a6;
/* rgb */ color: rgb(45, 34, 166);
/* oklch */ color: oklch(37.5% 0.197 274.9);
Tailwind
colors: {
  custom: {
    50: '#7a61c2',
    500: '#2d22a6',
    950: '#000000',
  },
}
SCSS
$custom: #2d22a6;
$custom-light: #7a61c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d22a6",
  "rgb": {
    "r": 45,
    "g": 34,
    "b": 166
  },
  "hsl": {
    "h": 245,
    "s": 66,
    "l": 39.216
  },
  "oklch": {
    "l": 0.37496,
    "c": 0.19739,
    "h": 274.9
  },
  "luminance": 0.04455
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D22A6

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

Preview Lab → · Contrast checker → · Palette generator →

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