#2C198E#2C198E

#2C198E is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.6% C 0.177 H 278.5°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#2C198E
RGBrgb(44, 25, 142)
HSLhsl(250, 70%, 33%)
HSVhsv(250, 82%, 56%)
CMYKcmyk(69%, 82.4%, 0%, 44.3%)
CIE-LABlab(20.76, 43.54, -60.49)
CIE-LCHlch(20.76, 74.53, 305.75°)
OKLaboklab(33.64% 0.026 -0.1747)
OKLCHoklch(33.64% 0.177 278.5)
XYZxyz(6.2673, 3.1832, 25.8701)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C198E #7B8E19
analogous
#19408E #2C198E #67198E
triadic
#2C198E #8E2C19 #198E2C
tetradic
#2C198E #8E1940 #7B8E19 #198E67
square
#2C198E #8E1940 #7B8E19 #198E67
split-complementary
#2C198E #8E6719 #408E19
monochromatic
#0C0726 #1C105A #2C198E #3C22C2 #5D43DE

Accessibility & contrast

On white

12.83
#2C198E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2C198E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C198E
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C198E#FFFFFF#000000##FFFFFF
##2C198E1.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003691
Deuteranopia (green-blind)
#002D8C
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2c198e;
/* rgb */ color: rgb(44, 25, 142);
/* oklch */ color: oklch(33.6% 0.177 278.5);
Tailwind
colors: {
  custom: {
    50: '#755ab0',
    500: '#2c198e',
    950: '#000000',
  },
}
SCSS
$custom: #2c198e;
$custom-light: #755ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c198e",
  "rgb": {
    "r": 44,
    "g": 25,
    "b": 142
  },
  "hsl": {
    "h": 249.744,
    "s": 70.06,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33643,
    "c": 0.17664,
    "h": 278.5
  },
  "luminance": 0.03184
}

Semantic roles & 50–950 ramp

primary
#2C198E
secondary
#ABBF44
accent
#ED3BD0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2C198E

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

Preview Lab → · Contrast checker → · Palette generator →

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