#2C22A7#2C22A7

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

Color values

HEX#2C22A7
RGBrgb(44, 34, 167)
HSLhsl(245, 66%, 39%)
HSVhsv(245, 80%, 65%)
CMYKcmyk(73.7%, 79.6%, 0%, 34.5%)
CIE-LABlab(25.16, 46.89, -68.54)
CIE-LCHlch(25.16, 83.05, 304.38°)
OKLaboklab(37.54% 0.0152 -0.1982)
OKLCHoklch(37.54% 0.199 274.4)
XYZxyz(8.5835, 4.4687, 36.9619)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C22A7 #9DA722
analogous
#225BA7 #2C22A7 #6F22A7
triadic
#2C22A7 #A72C22 #22A72C
tetradic
#2C22A7 #A7225B #9DA722 #22A76F
square
#2C22A7 #A7225B #9DA722 #22A76F
split-complementary
#2C22A7 #A76F22 #5BA722
monochromatic
#110D41 #1F1874 #2C22A7 #3D31D5 #6D64DF

Accessibility & contrast

On white

11.09
#2C22A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C22A7
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C22A7#FFFFFF#000000##FFFFFF
##2C22A71.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AB
Deuteranopia (green-blind)
#0035A5
Tritanopia (blue-blind)
#004B64
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2c22a7;
/* rgb */ color: rgb(44, 34, 167);
/* oklch */ color: oklch(37.5% 0.199 274.4);
Tailwind
colors: {
  custom: {
    50: '#7a61c2',
    500: '#2c22a7',
    950: '#000000',
  },
}
SCSS
$custom: #2c22a7;
$custom-light: #7a61c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2c22a7",
  "rgb": {
    "r": 44,
    "g": 34,
    "b": 167
  },
  "hsl": {
    "h": 244.511,
    "s": 66.169,
    "l": 39.412
  },
  "oklch": {
    "l": 0.37542,
    "c": 0.19883,
    "h": 274.4
  },
  "luminance": 0.0447
}

Semantic roles & 50–950 ramp

primary
#2C22A7
secondary
#BDC560
accent
#E93FDC
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2C22A7

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

Preview Lab → · Contrast checker → · Palette generator →

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