#2C229E#2C229E

#2C229E is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.5% C 0.188 H 275.3°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#2C229E
RGBrgb(44, 34, 158)
HSLhsl(245, 65%, 38%)
HSVhsv(245, 78%, 62%)
CMYKcmyk(72.2%, 78.5%, 0%, 38%)
CIE-LABlab(24.15, 44.03, -64.75)
CIE-LCHlch(24.15, 78.30, 304.21°)
OKLaboklab(36.54% 0.0174 -0.1872)
OKLCHoklch(36.54% 0.188 275.3)
XYZxyz(7.7803, 4.1474, 32.7316)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C229E #949E22
analogous
#22569E #2C229E #6A229E
triadic
#2C229E #9E2C22 #229E2C
tetradic
#2C229E #9E2256 #949E22 #229E6A
square
#2C229E #9E2256 #949E22 #229E6A
split-complementary
#2C229E #9E6A22 #569E22
monochromatic
#100C39 #1E176C #2C229E #3A2DD0 #685EDC

Accessibility & contrast

On white

11.48
#2C229E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#2C229E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C229E
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C229E#FFFFFF#000000##FFFFFF
##2C229E1.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA1
Deuteranopia (green-blind)
#00349C
Tritanopia (blue-blind)
#00475F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2c229e;
/* rgb */ color: rgb(44, 34, 158);
/* oklch */ color: oklch(36.5% 0.188 275.3);
Tailwind
colors: {
  custom: {
    50: '#7860bc',
    500: '#2c229e',
    950: '#000000',
  },
}
SCSS
$custom: #2c229e;
$custom-light: #7860bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2c229e",
  "rgb": {
    "r": 44,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 244.839,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.36538,
    "c": 0.18803,
    "h": 275.3
  },
  "luminance": 0.04148
}

Semantic roles & 50–950 ramp

primary
#2C229E
secondary
#B9C15B
accent
#E840DA
background
#F7F5FB
surface
#EEEAF7
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2C229E

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

Preview Lab → · Contrast checker → · Palette generator →

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