#2C228D#2C228D

#2C228D is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.7% C 0.167 H 277.4°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#2C228D
RGBrgb(44, 34, 141)
HSLhsl(246, 61%, 34%)
HSVhsv(246, 76%, 55%)
CMYKcmyk(68.8%, 75.9%, 0%, 44.7%)
CIE-LABlab(22.31, 38.47, -57.31)
CIE-LCHlch(22.31, 69.02, 303.87°)
OKLaboklab(34.69% 0.0214 -0.1656)
OKLCHoklch(34.69% 0.167 277.4)
XYZxyz(6.4169, 3.6021, 25.5512)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C228D #838D22
analogous
#224E8D #2C228D #61228D
triadic
#2C228D #8D2C22 #228D2C
tetradic
#2C228D #8D224E #838D22 #228D61
square
#2C228D #8D224E #838D22 #228D61
split-complementary
#2C228D #8D6122 #4E8D22
monochromatic
#0D0A2A #1D165C #2C228D #3B2EBE #6054D6

Accessibility & contrast

On white

12.21
#2C228D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2C228D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C228D
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C228D#FFFFFF#000000##FFFFFF
##2C228D1.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A90
Deuteranopia (green-blind)
#00318B
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2c228d;
/* rgb */ color: rgb(44, 34, 141);
/* oklch */ color: oklch(34.7% 0.167 277.4);
Tailwind
colors: {
  custom: {
    50: '#745faf',
    500: '#2c228d',
    950: '#000000',
  },
}
SCSS
$custom: #2c228d;
$custom-light: #745faf;
$custom-dark: #000000;
JSON
{
  "hex": "#2c228d",
  "rgb": {
    "r": 44,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 245.607,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34693,
    "c": 0.16694,
    "h": 277.4
  },
  "luminance": 0.03603
}

Semantic roles & 50–950 ramp

primary
#2C228D
secondary
#B0B951
accent
#E444D5
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090511
muted
#7B7980

Preview Lab

Preview with #2C228D

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

Preview Lab → · Contrast checker → · Palette generator →

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