#2C226D#2C226D

#2C226D is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.5% C 0.124 H 282.6°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#2C226D
RGBrgb(44, 34, 109)
HSLhsl(248, 52%, 28%)
HSVhsv(248, 69%, 43%)
CMYKcmyk(59.6%, 68.8%, 0%, 57.3%)
CIE-LABlab(19.15, 27.60, -42.16)
CIE-LCHlch(19.15, 50.39, 303.21°)
OKLaboklab(31.48% 0.0272 -0.1212)
OKLCHoklch(31.48% 0.124 282.6)
XYZxyz(4.3702, 2.7834, 14.7720)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C226D #636D22
analogous
#223D6D #2C226D #51226D
triadic
#2C226D #6D2C22 #226D2C
tetradic
#2C226D #6D223D #636D22 #226D51
square
#2C226D #6D223D #636D22 #226D51
split-complementary
#2C226D #6D5122 #3D6D22
monochromatic
#090717 #19133E #2C226D #3F319C #5645C5

Accessibility & contrast

On white

13.49
#2C226D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C226D
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C226D#FFFFFF#000000##FFFFFF
##2C226D1.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316F
Deuteranopia (green-blind)
#002C6C
Tritanopia (blue-blind)
#0A3544
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2c226d;
/* rgb */ color: rgb(44, 34, 109);
/* oklch */ color: oklch(31.5% 0.124 282.6);
Tailwind
colors: {
  custom: {
    50: '#6d5e98',
    500: '#2c226d',
    950: '#000000',
  },
}
SCSS
$custom: #2c226d;
$custom-light: #6d5e98;
$custom-dark: #000000;
JSON
{
  "hex": "#2c226d",
  "rgb": {
    "r": 44,
    "g": 34,
    "b": 109
  },
  "hsl": {
    "h": 248,
    "s": 52.448,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31475,
    "c": 0.12423,
    "h": 282.6
  },
  "luminance": 0.02784
}

Semantic roles & 50–950 ramp

primary
#2C226D
secondary
#95A14A
accent
#DC4CC9
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #2C226D

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

Preview Lab → · Contrast checker → · Palette generator →

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