#2C198D#2C198D

#2C198D is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.5% C 0.175 H 278.6°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#2C198D
RGBrgb(44, 25, 141)
HSLhsl(250, 70%, 33%)
HSVhsv(250, 82%, 55%)
CMYKcmyk(68.8%, 82.3%, 0%, 44.7%)
CIE-LABlab(20.65, 43.23, -60.06)
CIE-LCHlch(20.65, 74.00, 305.75°)
OKLaboklab(33.53% 0.0263 -0.1735)
OKLCHoklch(33.53% 0.175 278.6)
XYZxyz(6.1925, 3.1533, 25.4764)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C198D #7A8D19
analogous
#19408D #2C198D #66198D
triadic
#2C198D #8D2C19 #198D2C
tetradic
#2C198D #8D1940 #7A8D19 #198D66
square
#2C198D #8D1940 #7A8D19 #198D66
split-complementary
#2C198D #8D6619 #408D19
monochromatic
#0C0725 #1C1059 #2C198D #3C22C1 #5C43DE

Accessibility & contrast

On white

12.88
#2C198D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2C198D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C198D
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C198D#FFFFFF#000000##FFFFFF
##2C198D1.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c198d;
/* rgb */ color: rgb(44, 25, 141);
/* oklch */ color: oklch(33.5% 0.175 278.6);
Tailwind
colors: {
  custom: {
    50: '#745ab0',
    500: '#2c198d',
    950: '#000000',
  },
}
SCSS
$custom: #2c198d;
$custom-light: #745ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c198d",
  "rgb": {
    "r": 44,
    "g": 25,
    "b": 141
  },
  "hsl": {
    "h": 249.828,
    "s": 69.88,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33529,
    "c": 0.17545,
    "h": 278.6
  },
  "luminance": 0.03154
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C198D

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

Preview Lab → · Contrast checker → · Palette generator →

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