#2C22A2#2C22A2

#2C22A2 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 37.0% C 0.193 H 274.9°. Best body text is #FFFFFF at 11.30:1 contrast (WCAG AA passes).

Color values

HEX#2C22A2
RGBrgb(44, 34, 162)
HSLhsl(245, 65%, 38%)
HSVhsv(245, 79%, 64%)
CMYKcmyk(72.8%, 79%, 0%, 36.5%)
CIE-LABlab(24.60, 45.31, -66.45)
CIE-LCHlch(24.60, 80.42, 304.29°)
OKLaboklab(36.98% 0.0164 -0.1922)
OKLCHoklch(36.98% 0.193 274.9)
XYZxyz(8.1302, 4.2874, 34.5745)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C22A2 #98A222
analogous
#2258A2 #2C22A2 #6C22A2
triadic
#2C22A2 #A22C22 #22A22C
tetradic
#2C22A2 #A22258 #98A222 #22A26C
square
#2C22A2 #A22258 #98A222 #22A26C
split-complementary
#2C22A2 #A26C22 #58A222
monochromatic
#110D3D #1E176F #2C22A2 #3B2ED3 #6A61DE

Accessibility & contrast

On white

11.30
#2C22A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2C22A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C22A2
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C22A2#FFFFFF#000000##FFFFFF
##2C22A21.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A6
Deuteranopia (green-blind)
#0034A0
Tritanopia (blue-blind)
#004962
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2c22a2;
/* rgb */ color: rgb(44, 34, 162);
/* oklch */ color: oklch(37.0% 0.193 274.9);
Tailwind
colors: {
  custom: {
    50: '#7960bf',
    500: '#2c22a2',
    950: '#000000',
  },
}
SCSS
$custom: #2c22a2;
$custom-light: #7960bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2c22a2",
  "rgb": {
    "r": 44,
    "g": 34,
    "b": 162
  },
  "hsl": {
    "h": 244.688,
    "s": 65.306,
    "l": 38.431
  },
  "oklch": {
    "l": 0.36983,
    "c": 0.19286,
    "h": 274.9
  },
  "luminance": 0.04288
}

Semantic roles & 50–950 ramp

primary
#2C22A2
secondary
#BBC35D
accent
#E840DB
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2C22A2

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

Preview Lab → · Contrast checker → · Palette generator →

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