#2C226A#2C226A

#2C226A is a dark, moderate blue. Relative luminance 0.027; OKLCH L 31.2% C 0.120 H 283.3°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#2C226A
RGBrgb(44, 34, 106)
HSLhsl(248, 51%, 27%)
HSVhsv(248, 68%, 42%)
CMYKcmyk(58.5%, 67.9%, 0%, 58.4%)
CIE-LABlab(18.89, 26.56, -40.64)
CIE-LCHlch(18.89, 48.55, 303.17°)
OKLaboklab(31.2% 0.0276 -0.1168)
OKLCHoklch(31.2% 0.12 283.3)
XYZxyz(4.2115, 2.7199, 13.9359)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C226A #606A22
analogous
#223C6A #2C226A #50226A
triadic
#2C226A #6A2C22 #226A2C
tetradic
#2C226A #6A223C #606A22 #226A50
square
#2C226A #6A223C #606A22 #226A50
split-complementary
#2C226A #6A5022 #3C6A22
monochromatic
#0A0717 #19133C #2C226A #3F3198 #5544C3

Accessibility & contrast

On white

13.60
#2C226A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2C226A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C226A
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C226A#FFFFFF#000000##FFFFFF
##2C226A1.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306C
Deuteranopia (green-blind)
#002B69
Tritanopia (blue-blind)
#0F3442
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2c226a;
/* rgb */ color: rgb(44, 34, 106);
/* oklch */ color: oklch(31.2% 0.120 283.3);
Tailwind
colors: {
  custom: {
    50: '#6c5e95',
    500: '#2c226a',
    950: '#000000',
  },
}
SCSS
$custom: #2c226a;
$custom-light: #6c5e95;
$custom-dark: #000000;
JSON
{
  "hex": "#2c226a",
  "rgb": {
    "r": 44,
    "g": 34,
    "b": 106
  },
  "hsl": {
    "h": 248.333,
    "s": 51.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31195,
    "c": 0.11999,
    "h": 283.3
  },
  "luminance": 0.0272
}

Semantic roles & 50–950 ramp

primary
#2C226A
secondary
#929E4A
accent
#DB4DC7
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #2C226A

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

Preview Lab → · Contrast checker → · Palette generator →

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