#2C2186#2C2186

#2C2186 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.8% C 0.159 H 278.5°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#2C2186
RGBrgb(44, 33, 134)
HSLhsl(247, 60%, 33%)
HSVhsv(247, 75%, 53%)
CMYKcmyk(67.2%, 75.4%, 0%, 47.5%)
CIE-LABlab(21.37, 36.71, -54.48)
CIE-LCHlch(21.37, 65.69, 303.98°)
OKLaboklab(33.81% 0.0236 -0.1573)
OKLCHoklch(33.81% 0.159 278.5)
XYZxyz(5.8843, 3.3439, 22.8850)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2186 #7B8621
analogous
#214886 #2C2186 #5F2186
triadic
#2C2186 #862C21 #21862C
tetradic
#2C2186 #862148 #7B8621 #21865F
square
#2C2186 #862148 #7B8621 #21865F
split-complementary
#2C2186 #865F21 #488621
monochromatic
#0C0924 #1C1555 #2C2186 #3C2DB7 #5D4ED3

Accessibility & contrast

On white

12.58
#2C2186 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2C2186 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2186
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2186#FFFFFF#000000##FFFFFF
##2C21861.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003789
Deuteranopia (green-blind)
#002F84
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2c2186;
/* rgb */ color: rgb(44, 33, 134);
/* oklch */ color: oklch(33.8% 0.159 278.5);
Tailwind
colors: {
  custom: {
    50: '#725eaa',
    500: '#2c2186',
    950: '#000000',
  },
}
SCSS
$custom: #2c2186;
$custom-light: #725eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2186",
  "rgb": {
    "r": 44,
    "g": 33,
    "b": 134
  },
  "hsl": {
    "h": 246.535,
    "s": 60.479,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33808,
    "c": 0.15904,
    "h": 278.5
  },
  "luminance": 0.03344
}

Semantic roles & 50–950 ramp

primary
#2C2186
secondary
#ABB74C
accent
#E444D2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2C2186

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

Preview Lab → · Contrast checker → · Palette generator →

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