#2C198C#2C198C

#2C198C is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.4% C 0.174 H 278.8°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#2C198C
RGBrgb(44, 25, 140)
HSLhsl(250, 70%, 32%)
HSVhsv(250, 82%, 55%)
CMYKcmyk(68.6%, 82.1%, 0%, 45.1%)
CIE-LABlab(20.53, 42.92, -59.62)
CIE-LCHlch(20.53, 73.46, 305.75°)
OKLaboklab(33.42% 0.0266 -0.1722)
OKLCHoklch(33.42% 0.174 278.8)
XYZxyz(6.1184, 3.1237, 25.0864)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C198C #798C19
analogous
#19408C #2C198C #66198C
triadic
#2C198C #8C2C19 #198C2C
tetradic
#2C198C #8C1940 #798C19 #198C66
square
#2C198C #8C1940 #798C19 #198C66
split-complementary
#2C198C #8C6619 #408C19
monochromatic
#0B0624 #1C1058 #2C198C #3C22C0 #5C42DD

Accessibility & contrast

On white

12.92
#2C198C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2C198C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C198C
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C198C#FFFFFF#000000##FFFFFF
##2C198C1.0012.921.6212.92
#FFFFFF12.921.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368F
Deuteranopia (green-blind)
#002D8A
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2c198c;
/* rgb */ color: rgb(44, 25, 140);
/* oklch */ color: oklch(33.4% 0.174 278.8);
Tailwind
colors: {
  custom: {
    50: '#745aaf',
    500: '#2c198c',
    950: '#000000',
  },
}
SCSS
$custom: #2c198c;
$custom-light: #745aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#2c198c",
  "rgb": {
    "r": 44,
    "g": 25,
    "b": 140
  },
  "hsl": {
    "h": 249.913,
    "s": 69.697,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33415,
    "c": 0.17425,
    "h": 278.8
  },
  "luminance": 0.03124
}

Semantic roles & 50–950 ramp

primary
#2C198C
secondary
#AABE43
accent
#ED3BCF
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #2C198C

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

Preview Lab → · Contrast checker → · Palette generator →

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