#2C22A6#2C22A6

#2C22A6 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.4% C 0.198 H 274.5°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#2C22A6
RGBrgb(44, 34, 166)
HSLhsl(245, 66%, 39%)
HSVhsv(245, 80%, 65%)
CMYKcmyk(73.5%, 79.5%, 0%, 34.9%)
CIE-LABlab(25.05, 46.58, -68.13)
CIE-LCHlch(25.05, 82.53, 304.36°)
OKLaboklab(37.43% 0.0154 -0.197)
OKLCHoklch(37.43% 0.198 274.5)
XYZxyz(8.4914, 4.4319, 36.4769)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C22A6 #9CA622
analogous
#225AA6 #2C22A6 #6E22A6
triadic
#2C22A6 #A62C22 #22A62C
tetradic
#2C22A6 #A6225A #9CA622 #22A66E
square
#2C22A6 #A6225A #9CA622 #22A66E
split-complementary
#2C22A6 #A66E22 #5AA622
monochromatic
#110D40 #1F1873 #2C22A6 #3D30D5 #6D63DF

Accessibility & contrast

On white

11.13
#2C22A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C22A6
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C22A6#FFFFFF#000000##FFFFFF
##2C22A61.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c22a6;
/* rgb */ color: rgb(44, 34, 166);
/* oklch */ color: oklch(37.4% 0.198 274.5);
Tailwind
colors: {
  custom: {
    50: '#7960c2',
    500: '#2c22a6',
    950: '#000000',
  },
}
SCSS
$custom: #2c22a6;
$custom-light: #7960c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2c22a6",
  "rgb": {
    "r": 44,
    "g": 34,
    "b": 166
  },
  "hsl": {
    "h": 244.545,
    "s": 66,
    "l": 39.216
  },
  "oklch": {
    "l": 0.3743,
    "c": 0.19764,
    "h": 274.5
  },
  "luminance": 0.04433
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C22A6

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

Preview Lab → · Contrast checker → · Palette generator →

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