#2C229D#2C229D

#2C229D is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.4% C 0.187 H 275.4°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#2C229D
RGBrgb(44, 34, 157)
HSLhsl(245, 64%, 37%)
HSVhsv(245, 78%, 62%)
CMYKcmyk(72%, 78.3%, 0%, 38.4%)
CIE-LABlab(24.04, 43.70, -64.32)
CIE-LCHlch(24.04, 77.76, 304.19°)
OKLaboklab(36.43% 0.0176 -0.186)
OKLCHoklch(36.43% 0.187 275.4)
XYZxyz(7.6945, 4.1131, 32.2802)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C229D #939D22
analogous
#22569D #2C229D #69229D
triadic
#2C229D #9D2C22 #229D2C
tetradic
#2C229D #9D2256 #939D22 #229D69
square
#2C229D #9D2256 #939D22 #229D69
split-complementary
#2C229D #9D6922 #569D22
monochromatic
#100C38 #1E176B #2C229D #3A2DCF #685DDC

Accessibility & contrast

On white

11.52
#2C229D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C229D
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C229D#FFFFFF#000000##FFFFFF
##2C229D1.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c229d;
/* rgb */ color: rgb(44, 34, 157);
/* oklch */ color: oklch(36.4% 0.187 275.4);
Tailwind
colors: {
  custom: {
    50: '#7760bb',
    500: '#2c229d',
    950: '#000000',
  },
}
SCSS
$custom: #2c229d;
$custom-light: #7760bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2c229d",
  "rgb": {
    "r": 44,
    "g": 34,
    "b": 157
  },
  "hsl": {
    "h": 244.878,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.36428,
    "c": 0.18681,
    "h": 275.4
  },
  "luminance": 0.04114
}

Semantic roles & 50–950 ramp

primary
#2C229D
secondary
#B8C15A
accent
#E740DA
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2C229D

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

Preview Lab → · Contrast checker → · Palette generator →

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