#2C226C#2C226C

#2C226C is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.4% C 0.123 H 282.9°. Best body text is #FFFFFF at 13.53:1 contrast (WCAG AA passes).

Color values

HEX#2C226C
RGBrgb(44, 34, 108)
HSLhsl(248, 52%, 28%)
HSVhsv(248, 69%, 42%)
CMYKcmyk(59.3%, 68.5%, 0%, 57.6%)
CIE-LABlab(19.06, 27.25, -41.65)
CIE-LCHlch(19.06, 49.78, 303.19°)
OKLaboklab(31.38% 0.0273 -0.1197)
OKLCHoklch(31.38% 0.123 282.9)
XYZxyz(4.3167, 2.7620, 14.4901)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C226C #626C22
analogous
#223D6C #2C226C #51226C
triadic
#2C226C #6C2C22 #226C2C
tetradic
#2C226C #6C223D #626C22 #226C51
square
#2C226C #6C223D #626C22 #226C51
split-complementary
#2C226C #6C5122 #3D6C22
monochromatic
#090717 #19133D #2C226C #3F319B #5644C4

Accessibility & contrast

On white

13.53
#2C226C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2C226C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C226C
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C226C#FFFFFF#000000##FFFFFF
##2C226C1.0013.531.5513.53
#FFFFFF13.531.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316E
Deuteranopia (green-blind)
#002C6B
Tritanopia (blue-blind)
#0C3543
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2c226c;
/* rgb */ color: rgb(44, 34, 108);
/* oklch */ color: oklch(31.4% 0.123 282.9);
Tailwind
colors: {
  custom: {
    50: '#6d5e97',
    500: '#2c226c',
    950: '#000000',
  },
}
SCSS
$custom: #2c226c;
$custom-light: #6d5e97;
$custom-dark: #000000;
JSON
{
  "hex": "#2c226c",
  "rgb": {
    "r": 44,
    "g": 34,
    "b": 108
  },
  "hsl": {
    "h": 248.108,
    "s": 52.113,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31381,
    "c": 0.12282,
    "h": 282.9
  },
  "luminance": 0.02762
}

Semantic roles & 50–950 ramp

primary
#2C226C
secondary
#94A04A
accent
#DC4CC8
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #2C226C

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

Preview Lab → · Contrast checker → · Palette generator →

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