#2C228C#2C228C

#2C228C is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.6% C 0.166 H 277.5°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#2C228C
RGBrgb(44, 34, 140)
HSLhsl(246, 61%, 34%)
HSVhsv(246, 76%, 55%)
CMYKcmyk(68.6%, 75.7%, 0%, 45.1%)
CIE-LABlab(22.20, 38.13, -56.86)
CIE-LCHlch(22.20, 68.46, 303.85°)
OKLaboklab(34.59% 0.0216 -0.1642)
OKLCHoklch(34.59% 0.166 277.5)
XYZxyz(6.3428, 3.5724, 25.1611)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C228C #828C22
analogous
#224D8C #2C228C #61228C
triadic
#2C228C #8C2C22 #228C2C
tetradic
#2C228C #8C224D #828C22 #228C61
square
#2C228C #8C224D #828C22 #228C61
split-complementary
#2C228C #8C6122 #4D8C22
monochromatic
#0D0A2A #1D165B #2C228C #3B2EBD #5F53D5

Accessibility & contrast

On white

12.25
#2C228C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2C228C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C228C
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C228C#FFFFFF#000000##FFFFFF
##2C228C1.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398F
Deuteranopia (green-blind)
#00318A
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2c228c;
/* rgb */ color: rgb(44, 34, 140);
/* oklch */ color: oklch(34.6% 0.166 277.5);
Tailwind
colors: {
  custom: {
    50: '#735faf',
    500: '#2c228c',
    950: '#000000',
  },
}
SCSS
$custom: #2c228c;
$custom-light: #735faf;
$custom-dark: #000000;
JSON
{
  "hex": "#2c228c",
  "rgb": {
    "r": 44,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 245.66,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34587,
    "c": 0.16566,
    "h": 277.5
  },
  "luminance": 0.03573
}

Semantic roles & 50–950 ramp

primary
#2C228C
secondary
#AFB951
accent
#E444D5
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090510
muted
#7B797F

Preview Lab

Preview with #2C228C

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

Preview Lab → · Contrast checker → · Palette generator →

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