#2C228E#2C228E

#2C228E is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.8% C 0.168 H 277.2°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#2C228E
RGBrgb(44, 34, 142)
HSLhsl(246, 61%, 35%)
HSVhsv(246, 76%, 56%)
CMYKcmyk(69%, 76.1%, 0%, 44.3%)
CIE-LABlab(22.42, 38.80, -57.76)
CIE-LCHlch(22.42, 69.58, 303.89°)
OKLaboklab(34.8% 0.0211 -0.1669)
OKLCHoklch(34.8% 0.168 277.2)
XYZxyz(6.4916, 3.6320, 25.9449)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C228E #848E22
analogous
#224E8E #2C228E #62228E
triadic
#2C228E #8E2C22 #228E2C
tetradic
#2C228E #8E224E #848E22 #228E62
square
#2C228E #8E224E #848E22 #228E62
split-complementary
#2C228E #8E6222 #4E8E22
monochromatic
#0D0A2B #1D165D #2C228E #3B2EBF #6054D6

Accessibility & contrast

On white

12.16
#2C228E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2C228E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C228E
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C228E#FFFFFF#000000##FFFFFF
##2C228E1.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A91
Deuteranopia (green-blind)
#00318C
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2c228e;
/* rgb */ color: rgb(44, 34, 142);
/* oklch */ color: oklch(34.8% 0.168 277.2);
Tailwind
colors: {
  custom: {
    50: '#745fb0',
    500: '#2c228e',
    950: '#000000',
  },
}
SCSS
$custom: #2c228e;
$custom-light: #745fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c228e",
  "rgb": {
    "r": 44,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 245.556,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34799,
    "c": 0.1682,
    "h": 277.2
  },
  "luminance": 0.03633
}

Semantic roles & 50–950 ramp

primary
#2C228E
secondary
#B0BA52
accent
#E443D6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2C228E

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

Preview Lab → · Contrast checker → · Palette generator →

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