#2C228B#2C228B

#2C228B is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.5% C 0.164 H 277.6°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#2C228B
RGBrgb(44, 34, 139)
HSLhsl(246, 61%, 34%)
HSVhsv(246, 76%, 55%)
CMYKcmyk(68.3%, 75.5%, 0%, 45.5%)
CIE-LABlab(22.10, 37.80, -56.41)
CIE-LCHlch(22.10, 67.90, 303.83°)
OKLaboklab(34.48% 0.0218 -0.1629)
OKLCHoklch(34.48% 0.164 277.6)
XYZxyz(6.2694, 3.5431, 24.7746)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C228B #818B22
analogous
#224D8B #2C228B #61228B
triadic
#2C228B #8B2C22 #228B2C
tetradic
#2C228B #8B224D #818B22 #228B61
square
#2C228B #8B224D #818B22 #228B61
split-complementary
#2C228B #8B6122 #4D8B22
monochromatic
#0D0A29 #1C165A #2C228B #3C2EBC #5F53D5

Accessibility & contrast

On white

12.29
#2C228B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2C228B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C228B
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C228B#FFFFFF#000000##FFFFFF
##2C228B1.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398E
Deuteranopia (green-blind)
#003089
Tritanopia (blue-blind)
#004054
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2c228b;
/* rgb */ color: rgb(44, 34, 139);
/* oklch */ color: oklch(34.5% 0.164 277.6);
Tailwind
colors: {
  custom: {
    50: '#735fae',
    500: '#2c228b',
    950: '#000000',
  },
}
SCSS
$custom: #2c228b;
$custom-light: #735fae;
$custom-dark: #000000;
JSON
{
  "hex": "#2c228b",
  "rgb": {
    "r": 44,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 245.714,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34481,
    "c": 0.16439,
    "h": 277.6
  },
  "luminance": 0.03544
}

Semantic roles & 50–950 ramp

primary
#2C228B
secondary
#AFB850
accent
#E444D5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2C228B

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

Preview Lab → · Contrast checker → · Palette generator →

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