#2C2487#2C2487

#2C2487 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.4% C 0.157 H 277.8°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#2C2487
RGBrgb(44, 36, 135)
HSLhsl(245, 58%, 34%)
HSVhsv(245, 73%, 53%)
CMYKcmyk(67.4%, 73.3%, 0%, 47.1%)
CIE-LABlab(22.11, 35.28, -53.89)
CIE-LCHlch(22.11, 64.41, 303.21°)
OKLaboklab(34.36% 0.0213 -0.1556)
OKLCHoklch(34.36% 0.157 277.8)
XYZxyz(6.0413, 3.5460, 23.2830)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2487 #7F8724
analogous
#244D87 #2C2487 #5D2487
triadic
#2C2487 #872C24 #24872C
tetradic
#2C2487 #87244D #7F8724 #24875D
square
#2C2487 #87244D #7F8724 #24875D
split-complementary
#2C2487 #875D24 #4D8724
monochromatic
#0D0A26 #1C1757 #2C2487 #3C31B7 #5E54D1

Accessibility & contrast

On white

12.29
#2C2487 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2C2487 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2487
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2487#FFFFFF#000000##FFFFFF
##2C24871.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398A
Deuteranopia (green-blind)
#003185
Tritanopia (blue-blind)
#003F53
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2c2487;
/* rgb */ color: rgb(44, 36, 135);
/* oklch */ color: oklch(34.4% 0.157 277.8);
Tailwind
colors: {
  custom: {
    50: '#7260ab',
    500: '#2c2487',
    950: '#000000',
  },
}
SCSS
$custom: #2c2487;
$custom-light: #7260ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2487",
  "rgb": {
    "r": 44,
    "g": 36,
    "b": 135
  },
  "hsl": {
    "h": 244.848,
    "s": 57.895,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34364,
    "c": 0.15704,
    "h": 277.8
  },
  "luminance": 0.03546
}

Semantic roles & 50–950 ramp

primary
#2C2487
secondary
#ADB551
accent
#E147D5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2C2487

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

Preview Lab → · Contrast checker → · Palette generator →

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