#2C229A#2C229A

#2C229A is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.1% C 0.183 H 275.8°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#2C229A
RGBrgb(44, 34, 154)
HSLhsl(245, 64%, 37%)
HSVhsv(245, 78%, 60%)
CMYKcmyk(71.4%, 77.9%, 0%, 39.6%)
CIE-LABlab(23.71, 42.73, -63.03)
CIE-LCHlch(23.71, 76.15, 304.14°)
OKLaboklab(36.1% 0.0184 -0.1822)
OKLCHoklch(36.1% 0.183 275.8)
XYZxyz(7.4416, 4.0119, 30.9478)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C229A #909A22
analogous
#22549A #2C229A #68229A
triadic
#2C229A #9A2C22 #229A2C
tetradic
#2C229A #9A2254 #909A22 #229A68
square
#2C229A #9A2254 #909A22 #229A68
split-complementary
#2C229A #9A6822 #549A22
monochromatic
#0F0C36 #1E1768 #2C229A #3A2DCC #665BDB

Accessibility & contrast

On white

11.65
#2C229A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2C229A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C229A
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C229A#FFFFFF#000000##FFFFFF
##2C229A1.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9D
Deuteranopia (green-blind)
#003398
Tritanopia (blue-blind)
#00465D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2c229a;
/* rgb */ color: rgb(44, 34, 154);
/* oklch */ color: oklch(36.1% 0.183 275.8);
Tailwind
colors: {
  custom: {
    50: '#7760b9',
    500: '#2c229a',
    950: '#000000',
  },
}
SCSS
$custom: #2c229a;
$custom-light: #7760b9;
$custom-dark: #000000;
JSON
{
  "hex": "#2c229a",
  "rgb": {
    "r": 44,
    "g": 34,
    "b": 154
  },
  "hsl": {
    "h": 245,
    "s": 63.83,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36098,
    "c": 0.18315,
    "h": 275.8
  },
  "luminance": 0.04013
}

Semantic roles & 50–950 ramp

primary
#2C229A
secondary
#B7BF58
accent
#E741D9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2C229A

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

Preview Lab → · Contrast checker → · Palette generator →

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