#2C2C87#2C2C87

#2C2C87 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.7% C 0.148 H 275.9°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#2C2C87
RGBrgb(44, 44, 135)
HSLhsl(240, 51%, 35%)
HSVhsv(240, 67%, 53%)
CMYKcmyk(67.4%, 67.4%, 0%, 47.1%)
CIE-LABlab(23.95, 30.26, -50.87)
CIE-LCHlch(23.95, 59.19, 300.75°)
OKLaboklab(35.69% 0.0152 -0.1467)
OKLCHoklch(35.69% 0.148 275.9)
XYZxyz(6.3111, 4.0856, 23.3730)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2C87 #87872C
analogous
#2C5987 #2C2C87 #592C87
triadic
#2C2C87 #872C2C #2C872C
tetradic
#2C2C87 #872C59 #87872C #2C8759
square
#2C2C87 #872C59 #87872C #2C8759
split-complementary
#2C2C87 #87592C #59872C
monochromatic
#0E0E2B #1D1D59 #2C2C87 #3B3BB5 #6262CC

Accessibility & contrast

On white

11.56
#2C2C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2C2C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2C87
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2C87#FFFFFF#000000##FFFFFF
##2C2C871.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8A
Deuteranopia (green-blind)
#003585
Tritanopia (blue-blind)
#004455
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2c2c87;
/* rgb */ color: rgb(44, 44, 135);
/* oklch */ color: oklch(35.7% 0.148 275.9);
Tailwind
colors: {
  custom: {
    50: '#7165ab',
    500: '#2c2c87',
    950: '#000000',
  },
}
SCSS
$custom: #2c2c87;
$custom-light: #7165ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2c87",
  "rgb": {
    "r": 44,
    "g": 44,
    "b": 135
  },
  "hsl": {
    "h": 240,
    "s": 50.838,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35692,
    "c": 0.14754,
    "h": 275.9
  },
  "luminance": 0.04086
}

Semantic roles & 50–950 ramp

primary
#2C2C87
secondary
#B2B25D
accent
#DA4DDA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #2C2C87

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

Preview Lab → · Contrast checker → · Palette generator →

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