#2C226B#2C226B

#2C226B is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.3% C 0.121 H 283.1°. Best body text is #FFFFFF at 13.56:1 contrast (WCAG AA passes).

Color values

HEX#2C226B
RGBrgb(44, 34, 107)
HSLhsl(248, 52%, 28%)
HSVhsv(248, 68%, 42%)
CMYKcmyk(58.9%, 68.2%, 0%, 58%)
CIE-LABlab(18.97, 26.91, -41.15)
CIE-LCHlch(18.97, 49.17, 303.18°)
OKLaboklab(31.29% 0.0274 -0.1183)
OKLCHoklch(31.29% 0.121 283.1)
XYZxyz(4.2638, 2.7408, 14.2114)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C226B #616B22
analogous
#223D6B #2C226B #50226B
triadic
#2C226B #6B2C22 #226B2C
tetradic
#2C226B #6B223D #616B22 #226B50
square
#2C226B #6B223D #616B22 #226B50
split-complementary
#2C226B #6B5022 #3D6B22
monochromatic
#0A0717 #19133D #2C226B #3F3199 #5544C4

Accessibility & contrast

On white

13.56
#2C226B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C226B
13.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C226B#FFFFFF#000000##FFFFFF
##2C226B1.0013.561.5513.56
#FFFFFF13.561.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306D
Deuteranopia (green-blind)
#002C6A
Tritanopia (blue-blind)
#0D3443
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2c226b;
/* rgb */ color: rgb(44, 34, 107);
/* oklch */ color: oklch(31.3% 0.121 283.1);
Tailwind
colors: {
  custom: {
    50: '#6c5e96',
    500: '#2c226b',
    950: '#000000',
  },
}
SCSS
$custom: #2c226b;
$custom-light: #6c5e96;
$custom-dark: #000000;
JSON
{
  "hex": "#2c226b",
  "rgb": {
    "r": 44,
    "g": 34,
    "b": 107
  },
  "hsl": {
    "h": 248.219,
    "s": 51.773,
    "l": 27.647
  },
  "oklch": {
    "l": 0.31288,
    "c": 0.1214,
    "h": 283.1
  },
  "luminance": 0.02741
}

Semantic roles & 50–950 ramp

primary
#2C226B
secondary
#939F4A
accent
#DB4DC8
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #2C226B

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

Preview Lab → · Contrast checker → · Palette generator →

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