#2C2298#2C2298

#2C2298 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.9% C 0.181 H 276.0°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#2C2298
RGBrgb(44, 34, 152)
HSLhsl(245, 63%, 36%)
HSVhsv(245, 78%, 60%)
CMYKcmyk(71.1%, 77.6%, 0%, 40.4%)
CIE-LABlab(23.49, 42.08, -62.17)
CIE-LCHlch(23.49, 75.07, 304.10°)
OKLaboklab(35.88% 0.0188 -0.1797)
OKLCHoklch(35.88% 0.181 276)
XYZxyz(7.2764, 3.9458, 30.0778)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2298 #8E9822
analogous
#225398 #2C2298 #672298
triadic
#2C2298 #982C22 #22982C
tetradic
#2C2298 #982253 #8E9822 #229867
square
#2C2298 #982253 #8E9822 #229867
split-complementary
#2C2298 #986722 #539822
monochromatic
#0F0C34 #1E1766 #2C2298 #3A2DCA #655ADA

Accessibility & contrast

On white

11.74
#2C2298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2C2298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2298
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2298#FFFFFF#000000##FFFFFF
##2C22981.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9B
Deuteranopia (green-blind)
#003396
Tritanopia (blue-blind)
#00455C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2c2298;
/* rgb */ color: rgb(44, 34, 152);
/* oklch */ color: oklch(35.9% 0.181 276.0);
Tailwind
colors: {
  custom: {
    50: '#7660b8',
    500: '#2c2298',
    950: '#000000',
  },
}
SCSS
$custom: #2c2298;
$custom-light: #7660b8;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2298",
  "rgb": {
    "r": 44,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 245.085,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.35879,
    "c": 0.18069,
    "h": 276
  },
  "luminance": 0.03947
}

Semantic roles & 50–950 ramp

primary
#2C2298
secondary
#B6BE57
accent
#E641D8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2C2298

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

Preview Lab → · Contrast checker → · Palette generator →

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