#2C288E#2C288E

#2C288E is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.7% C 0.162 H 276.1°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#2C288E
RGBrgb(44, 40, 142)
HSLhsl(242, 56%, 36%)
HSVhsv(242, 72%, 56%)
CMYKcmyk(69%, 71.8%, 0%, 44.3%)
CIE-LABlab(23.69, 35.25, -55.66)
CIE-LCHlch(23.69, 65.88, 302.34°)
OKLaboklab(35.71% 0.0173 -0.1608)
OKLCHoklch(35.71% 0.162 276.1)
XYZxyz(6.6784, 4.0055, 26.0071)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C288E #8A8E28
analogous
#28578E #2C288E #5F288E
triadic
#2C288E #8E2C28 #288E2C
tetradic
#2C288E #8E2857 #8A8E28 #288E5F
square
#2C288E #8E2857 #8A8E28 #288E5F
split-complementary
#2C288E #8E5F28 #578E28
monochromatic
#0E0D2F #1D1B5E #2C288E #3B35BE #635FD2

Accessibility & contrast

On white

11.66
#2C288E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2C288E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C288E
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C288E#FFFFFF#000000##FFFFFF
##2C288E1.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D91
Deuteranopia (green-blind)
#00348C
Tritanopia (blue-blind)
#004458
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2c288e;
/* rgb */ color: rgb(44, 40, 142);
/* oklch */ color: oklch(35.7% 0.162 276.1);
Tailwind
colors: {
  custom: {
    50: '#7363b0',
    500: '#2c288e',
    950: '#000000',
  },
}
SCSS
$custom: #2c288e;
$custom-light: #7363b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c288e",
  "rgb": {
    "r": 44,
    "g": 40,
    "b": 142
  },
  "hsl": {
    "h": 242.353,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35707,
    "c": 0.1617,
    "h": 276.1
  },
  "luminance": 0.04006
}

Semantic roles & 50–950 ramp

primary
#2C288E
secondary
#B4B75B
accent
#DF48D9
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2C288E

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

Preview Lab → · Contrast checker → · Palette generator →

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