#2C229C#2C229C

#2C229C is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.3% C 0.186 H 275.5°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#2C229C
RGBrgb(44, 34, 156)
HSLhsl(245, 64%, 37%)
HSVhsv(245, 78%, 61%)
CMYKcmyk(71.8%, 78.2%, 0%, 38.8%)
CIE-LABlab(23.93, 43.38, -63.89)
CIE-LCHlch(23.93, 77.23, 304.17°)
OKLaboklab(36.32% 0.0179 -0.1847)
OKLCHoklch(36.32% 0.186 275.5)
XYZxyz(7.6095, 4.0791, 31.8324)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C229C #929C22
analogous
#22559C #2C229C #69229C
triadic
#2C229C #9C2C22 #229C2C
tetradic
#2C229C #9C2255 #929C22 #229C69
square
#2C229C #9C2255 #929C22 #229C69
split-complementary
#2C229C #9C6922 #559C22
monochromatic
#100C38 #1E176A #2C229C #3A2DCE #675DDC

Accessibility & contrast

On white

11.56
#2C229C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2C229C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C229C
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C229C#FFFFFF#000000##FFFFFF
##2C229C1.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9F
Deuteranopia (green-blind)
#00339A
Tritanopia (blue-blind)
#00465E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2c229c;
/* rgb */ color: rgb(44, 34, 156);
/* oklch */ color: oklch(36.3% 0.186 275.5);
Tailwind
colors: {
  custom: {
    50: '#7760ba',
    500: '#2c229c',
    950: '#000000',
  },
}
SCSS
$custom: #2c229c;
$custom-light: #7760ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2c229c",
  "rgb": {
    "r": 44,
    "g": 34,
    "b": 156
  },
  "hsl": {
    "h": 244.918,
    "s": 64.211,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36317,
    "c": 0.18559,
    "h": 275.5
  },
  "luminance": 0.0408
}

Semantic roles & 50–950 ramp

primary
#2C229C
secondary
#B8C05A
accent
#E741DA
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2C229C

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

Preview Lab → · Contrast checker → · Palette generator →

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