#2C288A#2C288A

#2C288A is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.3% C 0.156 H 276.6°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#2C288A
RGBrgb(44, 40, 138)
HSLhsl(242, 55%, 35%)
HSVhsv(242, 71%, 54%)
CMYKcmyk(68.1%, 71%, 0%, 45.9%)
CIE-LABlab(23.30, 33.86, -53.82)
CIE-LCHlch(23.30, 63.58, 302.18°)
OKLaboklab(35.3% 0.0179 -0.1554)
OKLCHoklch(35.3% 0.156 276.6)
XYZxyz(6.3834, 3.8875, 24.4538)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C288A #868A28
analogous
#28558A #2C288A #5D288A
triadic
#2C288A #8A2C28 #288A2C
tetradic
#2C288A #8A2855 #868A28 #288A5D
square
#2C288A #8A2855 #868A28 #288A5D
split-complementary
#2C288A #8A5D28 #558A28
monochromatic
#0E0C2B #1D1A5B #2C288A #3B36B9 #615DD0

Accessibility & contrast

On white

11.81
#2C288A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2C288A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C288A
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C288A#FFFFFF#000000##FFFFFF
##2C288A1.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8D
Deuteranopia (green-blind)
#003388
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2c288a;
/* rgb */ color: rgb(44, 40, 138);
/* oklch */ color: oklch(35.3% 0.156 276.6);
Tailwind
colors: {
  custom: {
    50: '#7263ad',
    500: '#2c288a',
    950: '#000000',
  },
}
SCSS
$custom: #2c288a;
$custom-light: #7263ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2c288a",
  "rgb": {
    "r": 44,
    "g": 40,
    "b": 138
  },
  "hsl": {
    "h": 242.449,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35304,
    "c": 0.15642,
    "h": 276.6
  },
  "luminance": 0.03888
}

Semantic roles & 50–950 ramp

primary
#2C288A
secondary
#B1B559
accent
#DE49D8
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2C288A

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

Preview Lab → · Contrast checker → · Palette generator →

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