#2C229B#2C229B

#2C229B is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.2% C 0.184 H 275.6°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#2C229B
RGBrgb(44, 34, 155)
HSLhsl(245, 64%, 37%)
HSVhsv(245, 78%, 61%)
CMYKcmyk(71.6%, 78.1%, 0%, 39.2%)
CIE-LABlab(23.82, 43.06, -63.46)
CIE-LCHlch(23.82, 76.69, 304.16°)
OKLaboklab(36.21% 0.0181 -0.1835)
OKLCHoklch(36.21% 0.184 275.6)
XYZxyz(7.5252, 4.0454, 31.3882)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C229B #919B22
analogous
#22549B #2C229B #69229B
triadic
#2C229B #9B2C22 #229B2C
tetradic
#2C229B #9B2254 #919B22 #229B69
square
#2C229B #9B2254 #919B22 #229B69
split-complementary
#2C229B #9B6922 #549B22
monochromatic
#100C37 #1E1769 #2C229B #3A2DCD #675CDB

Accessibility & contrast

On white

11.61
#2C229B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2C229B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C229B
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C229B#FFFFFF#000000##FFFFFF
##2C229B1.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9E
Deuteranopia (green-blind)
#003399
Tritanopia (blue-blind)
#00465E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2c229b;
/* rgb */ color: rgb(44, 34, 155);
/* oklch */ color: oklch(36.2% 0.184 275.6);
Tailwind
colors: {
  custom: {
    50: '#7760ba',
    500: '#2c229b',
    950: '#000000',
  },
}
SCSS
$custom: #2c229b;
$custom-light: #7760ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2c229b",
  "rgb": {
    "r": 44,
    "g": 34,
    "b": 155
  },
  "hsl": {
    "h": 244.959,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36207,
    "c": 0.18437,
    "h": 275.6
  },
  "luminance": 0.04046
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C229B

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

Preview Lab → · Contrast checker → · Palette generator →

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