#2C2E87#2C2E87

#2C2E87 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.0% C 0.145 H 275.4°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#2C2E87
RGBrgb(44, 46, 135)
HSLhsl(239, 51%, 35%)
HSVhsv(239, 67%, 53%)
CMYKcmyk(67.4%, 65.9%, 0%, 47.1%)
CIE-LABlab(24.44, 28.96, -50.06)
CIE-LCHlch(24.44, 57.83, 300.04°)
OKLaboklab(36.05% 0.0136 -0.1444)
OKLCHoklch(36.05% 0.145 275.4)
XYZxyz(6.3874, 4.2382, 23.3984)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2E87 #87852C
analogous
#2C5C87 #2C2E87 #572C87
triadic
#2C2E87 #872C2E #2E872C
tetradic
#2C2E87 #872C5C #87852C #2C8757
square
#2C2E87 #872C5C #87852C #2C8757
split-complementary
#2C2E87 #87572C #5C872C
monochromatic
#0E0F2B #1D1E59 #2C2E87 #3B3EB5 #6264CC

Accessibility & contrast

On white

11.36
#2C2E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2C2E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2E87
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2E87#FFFFFF#000000##FFFFFF
##2C2E871.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8A
Deuteranopia (green-blind)
#003685
Tritanopia (blue-blind)
#004556
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2c2e87;
/* rgb */ color: rgb(44, 46, 135);
/* oklch */ color: oklch(36.0% 0.145 275.4);
Tailwind
colors: {
  custom: {
    50: '#7167ab',
    500: '#2c2e87',
    950: '#000000',
  },
}
SCSS
$custom: #2c2e87;
$custom-light: #7167ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2e87",
  "rgb": {
    "r": 44,
    "g": 46,
    "b": 135
  },
  "hsl": {
    "h": 238.681,
    "s": 50.838,
    "l": 35.098
  },
  "oklch": {
    "l": 0.3605,
    "c": 0.14501,
    "h": 275.4
  },
  "luminance": 0.04239
}

Semantic roles & 50–950 ramp

primary
#2C2E87
secondary
#B2B05D
accent
#D74DDA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2C2E87

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

Preview Lab → · Contrast checker → · Palette generator →

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