#2C229F#2C229F

#2C229F is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.6% C 0.189 H 275.2°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#2C229F
RGBrgb(44, 34, 159)
HSLhsl(245, 65%, 38%)
HSVhsv(245, 79%, 62%)
CMYKcmyk(72.3%, 78.6%, 0%, 37.6%)
CIE-LABlab(24.26, 44.35, -65.17)
CIE-LCHlch(24.26, 78.83, 304.23°)
OKLaboklab(36.65% 0.0172 -0.1885)
OKLCHoklch(36.65% 0.189 275.2)
XYZxyz(7.8667, 4.1820, 33.1868)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C229F #959F22
analogous
#22569F #2C229F #6A229F
triadic
#2C229F #9F2C22 #229F2C
tetradic
#2C229F #9F2256 #959F22 #229F6A
square
#2C229F #9F2256 #959F22 #229F6A
split-complementary
#2C229F #9F6A22 #569F22
monochromatic
#100C3A #1E176D #2C229F #3A2DD1 #695FDD

Accessibility & contrast

On white

11.43
#2C229F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2C229F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C229F
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C229F#FFFFFF#000000##FFFFFF
##2C229F1.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA3
Deuteranopia (green-blind)
#00349D
Tritanopia (blue-blind)
#004860
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2c229f;
/* rgb */ color: rgb(44, 34, 159);
/* oklch */ color: oklch(36.6% 0.189 275.2);
Tailwind
colors: {
  custom: {
    50: '#7860bd',
    500: '#2c229f',
    950: '#000000',
  },
}
SCSS
$custom: #2c229f;
$custom-light: #7860bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2c229f",
  "rgb": {
    "r": 44,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 244.8,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.36649,
    "c": 0.18924,
    "h": 275.2
  },
  "luminance": 0.04183
}

Semantic roles & 50–950 ramp

primary
#2C229F
secondary
#B9C15B
accent
#E840DA
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2C229F

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

Preview Lab → · Contrast checker → · Palette generator →

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