#2C22A1#2C22A1

#2C22A1 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.9% C 0.192 H 275.0°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#2C22A1
RGBrgb(44, 34, 161)
HSLhsl(245, 65%, 38%)
HSVhsv(245, 79%, 63%)
CMYKcmyk(72.7%, 78.9%, 0%, 36.9%)
CIE-LABlab(24.49, 44.99, -66.02)
CIE-LCHlch(24.49, 79.89, 304.27°)
OKLaboklab(36.87% 0.0167 -0.1909)
OKLCHoklch(36.87% 0.192 275)
XYZxyz(8.0416, 4.2520, 34.1082)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C22A1 #97A122
analogous
#2258A1 #2C22A1 #6B22A1
triadic
#2C22A1 #A12C22 #22A12C
tetradic
#2C22A1 #A12258 #97A122 #22A16B
square
#2C22A1 #A12258 #97A122 #22A16B
split-complementary
#2C22A1 #A16B22 #58A122
monochromatic
#100D3C #1E176E #2C22A1 #3A2DD3 #6A60DD

Accessibility & contrast

On white

11.35
#2C22A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2C22A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C22A1
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C22A1#FFFFFF#000000##FFFFFF
##2C22A11.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A5
Deuteranopia (green-blind)
#00349F
Tritanopia (blue-blind)
#004861
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2c22a1;
/* rgb */ color: rgb(44, 34, 161);
/* oklch */ color: oklch(36.9% 0.192 275.0);
Tailwind
colors: {
  custom: {
    50: '#7860be',
    500: '#2c22a1',
    950: '#000000',
  },
}
SCSS
$custom: #2c22a1;
$custom-light: #7860be;
$custom-dark: #000000;
JSON
{
  "hex": "#2c22a1",
  "rgb": {
    "r": 44,
    "g": 34,
    "b": 161
  },
  "hsl": {
    "h": 244.724,
    "s": 65.128,
    "l": 38.235
  },
  "oklch": {
    "l": 0.36871,
    "c": 0.19166,
    "h": 275
  },
  "luminance": 0.04253
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C22A1

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

Preview Lab → · Contrast checker → · Palette generator →

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