#2C288D#2C288D

#2C288D is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.6% C 0.160 H 276.2°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#2C288D
RGBrgb(44, 40, 141)
HSLhsl(242, 56%, 35%)
HSVhsv(242, 72%, 55%)
CMYKcmyk(68.8%, 71.6%, 0%, 44.7%)
CIE-LABlab(23.59, 34.90, -55.20)
CIE-LCHlch(23.59, 65.31, 302.30°)
OKLaboklab(35.61% 0.0174 -0.1594)
OKLCHoklch(35.61% 0.16 276.2)
XYZxyz(6.6036, 3.9756, 25.6135)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C288D #898D28
analogous
#28568D #2C288D #5E288D
triadic
#2C288D #8D2C28 #288D2C
tetradic
#2C288D #8D2856 #898D28 #288D5E
square
#2C288D #8D2856 #898D28 #288D5E
split-complementary
#2C288D #8D5E28 #568D28
monochromatic
#0E0D2E #1D1A5D #2C288D #3B36BD #635ED1

Accessibility & contrast

On white

11.70
#2C288D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C288D
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C288D#FFFFFF#000000##FFFFFF
##2C288D1.0011.701.8011.70
#FFFFFF11.701.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D90
Deuteranopia (green-blind)
#00348B
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2c288d;
/* rgb */ color: rgb(44, 40, 141);
/* oklch */ color: oklch(35.6% 0.160 276.2);
Tailwind
colors: {
  custom: {
    50: '#7363af',
    500: '#2c288d',
    950: '#000000',
  },
}
SCSS
$custom: #2c288d;
$custom-light: #7363af;
$custom-dark: #000000;
JSON
{
  "hex": "#2c288d",
  "rgb": {
    "r": 44,
    "g": 40,
    "b": 141
  },
  "hsl": {
    "h": 242.376,
    "s": 55.801,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35606,
    "c": 0.16039,
    "h": 276.2
  },
  "luminance": 0.03976
}

Semantic roles & 50–950 ramp

primary
#2C288D
secondary
#B3B75A
accent
#DF49D9
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#090511
muted
#7B7980

Preview Lab

Preview with #2C288D

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

Preview Lab → · Contrast checker → · Palette generator →

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