#2C2398#2C2398

#2C2398 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.0% C 0.180 H 275.8°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#2C2398
RGBrgb(44, 35, 152)
HSLhsl(245, 63%, 37%)
HSVhsv(245, 77%, 60%)
CMYKcmyk(71.1%, 77%, 0%, 40.4%)
CIE-LABlab(23.68, 41.53, -61.85)
CIE-LCHlch(23.68, 74.50, 303.88°)
OKLaboklab(36.01% 0.0183 -0.1788)
OKLCHoklch(36.01% 0.18 275.8)
XYZxyz(7.3054, 4.0039, 30.0875)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2398 #8F9823
analogous
#235598 #2C2398 #672398
triadic
#2C2398 #982C23 #23982C
tetradic
#2C2398 #982355 #8F9823 #239867
square
#2C2398 #982355 #8F9823 #239867
split-complementary
#2C2398 #986723 #559823
monochromatic
#0F0C35 #1E1866 #2C2398 #3A2ECA #665CD9

Accessibility & contrast

On white

11.66
#2C2398 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2C2398 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2398
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2398#FFFFFF#000000##FFFFFF
##2C23981.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.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: #2c2398;
/* rgb */ color: rgb(44, 35, 152);
/* oklch */ color: oklch(36.0% 0.180 275.8);
Tailwind
colors: {
  custom: {
    50: '#7660b8',
    500: '#2c2398',
    950: '#000000',
  },
}
SCSS
$custom: #2c2398;
$custom-light: #7660b8;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2398",
  "rgb": {
    "r": 44,
    "g": 35,
    "b": 152
  },
  "hsl": {
    "h": 244.615,
    "s": 62.567,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36014,
    "c": 0.17973,
    "h": 275.8
  },
  "luminance": 0.04005
}

Semantic roles & 50–950 ramp

primary
#2C2398
secondary
#B6BE59
accent
#E642D9
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2C2398

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

Preview Lab → · Contrast checker → · Palette generator →

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