#2C226E#2C226E

#2C226E is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.6% C 0.126 H 282.4°. Best body text is #FFFFFF at 13.45:1 contrast (WCAG AA passes).

Color values

HEX#2C226E
RGBrgb(44, 34, 110)
HSLhsl(248, 53%, 28%)
HSVhsv(248, 69%, 43%)
CMYKcmyk(60%, 69.1%, 0%, 56.9%)
CIE-LABlab(19.25, 27.94, -42.66)
CIE-LCHlch(19.25, 50.99, 303.23°)
OKLaboklab(31.57% 0.0271 -0.1227)
OKLCHoklch(31.57% 0.126 282.4)
XYZxyz(4.4243, 2.8050, 15.0571)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C226E #646E22
analogous
#223E6E #2C226E #52226E
triadic
#2C226E #6E2C22 #226E2C
tetradic
#2C226E #6E223E #646E22 #226E52
square
#2C226E #6E223E #646E22 #226E52
split-complementary
#2C226E #6E5222 #3E6E22
monochromatic
#090717 #19143F #2C226E #3F309D #5645C5

Accessibility & contrast

On white

13.45
#2C226E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2C226E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C226E
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C226E#FFFFFF#000000##FFFFFF
##2C226E1.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003170
Deuteranopia (green-blind)
#002C6D
Tritanopia (blue-blind)
#083544
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2c226e;
/* rgb */ color: rgb(44, 34, 110);
/* oklch */ color: oklch(31.6% 0.126 282.4);
Tailwind
colors: {
  custom: {
    50: '#6d5e98',
    500: '#2c226e',
    950: '#000000',
  },
}
SCSS
$custom: #2c226e;
$custom-light: #6d5e98;
$custom-dark: #000000;
JSON
{
  "hex": "#2c226e",
  "rgb": {
    "r": 44,
    "g": 34,
    "b": 110
  },
  "hsl": {
    "h": 247.895,
    "s": 52.778,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31569,
    "c": 0.12564,
    "h": 282.4
  },
  "luminance": 0.02805
}

Semantic roles & 50–950 ramp

primary
#2C226E
secondary
#96A14A
accent
#DC4CC9
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #2C226E

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

Preview Lab → · Contrast checker → · Palette generator →

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