#2C22A0#2C22A0

#2C22A0 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.8% C 0.190 H 275.1°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#2C22A0
RGBrgb(44, 34, 160)
HSLhsl(245, 65%, 38%)
HSVhsv(245, 79%, 63%)
CMYKcmyk(72.5%, 78.8%, 0%, 37.3%)
CIE-LABlab(24.38, 44.67, -65.60)
CIE-LCHlch(24.38, 79.36, 304.25°)
OKLaboklab(36.76% 0.0169 -0.1897)
OKLCHoklch(36.76% 0.19 275.1)
XYZxyz(7.9538, 4.2168, 33.6456)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C22A0 #96A022
analogous
#2257A0 #2C22A0 #6B22A0
triadic
#2C22A0 #A02C22 #22A02C
tetradic
#2C22A0 #A02257 #96A022 #22A06B
square
#2C22A0 #A02257 #96A022 #22A06B
split-complementary
#2C22A0 #A06B22 #57A022
monochromatic
#100D3B #1E176E #2C22A0 #3A2DD2 #695FDD

Accessibility & contrast

On white

11.39
#2C22A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2C22A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C22A0
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C22A0#FFFFFF#000000##FFFFFF
##2C22A01.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA4
Deuteranopia (green-blind)
#00349E
Tritanopia (blue-blind)
#004860
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2c22a0;
/* rgb */ color: rgb(44, 34, 160);
/* oklch */ color: oklch(36.8% 0.190 275.1);
Tailwind
colors: {
  custom: {
    50: '#7860bd',
    500: '#2c22a0',
    950: '#000000',
  },
}
SCSS
$custom: #2c22a0;
$custom-light: #7860bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2c22a0",
  "rgb": {
    "r": 44,
    "g": 34,
    "b": 160
  },
  "hsl": {
    "h": 244.762,
    "s": 64.948,
    "l": 38.039
  },
  "oklch": {
    "l": 0.3676,
    "c": 0.19045,
    "h": 275.1
  },
  "luminance": 0.04218
}

Semantic roles & 50–950 ramp

primary
#2C22A0
secondary
#BAC25C
accent
#E840DB
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2C22A0

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

Preview Lab → · Contrast checker → · Palette generator →

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