#2C288B#2C288B

#2C288B is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.4% C 0.158 H 276.5°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#2C288B
RGBrgb(44, 40, 139)
HSLhsl(242, 55%, 35%)
HSVhsv(242, 71%, 55%)
CMYKcmyk(68.3%, 71.2%, 0%, 45.5%)
CIE-LABlab(23.39, 34.21, -54.28)
CIE-LCHlch(23.39, 64.16, 302.22°)
OKLaboklab(35.4% 0.0177 -0.1567)
OKLCHoklch(35.4% 0.158 276.5)
XYZxyz(6.4562, 3.9166, 24.8368)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C288B #878B28
analogous
#28568B #2C288B #5D288B
triadic
#2C288B #8B2C28 #288B2C
tetradic
#2C288B #8B2856 #878B28 #288B5D
square
#2C288B #8B2856 #878B28 #288B5D
split-complementary
#2C288B #8B5D28 #568B28
monochromatic
#0E0D2C #1D1A5B #2C288B #3B36BB #625DD0

Accessibility & contrast

On white

11.78
#2C288B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C288B
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C288B#FFFFFF#000000##FFFFFF
##2C288B1.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8E
Deuteranopia (green-blind)
#003389
Tritanopia (blue-blind)
#004356
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2c288b;
/* rgb */ color: rgb(44, 40, 139);
/* oklch */ color: oklch(35.4% 0.158 276.5);
Tailwind
colors: {
  custom: {
    50: '#7363ae',
    500: '#2c288b',
    950: '#000000',
  },
}
SCSS
$custom: #2c288b;
$custom-light: #7363ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2c288b",
  "rgb": {
    "r": 44,
    "g": 40,
    "b": 139
  },
  "hsl": {
    "h": 242.424,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35404,
    "c": 0.15774,
    "h": 276.5
  },
  "luminance": 0.03917
}

Semantic roles & 50–950 ramp

primary
#2C288B
secondary
#B2B659
accent
#DF49D9
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2C288B

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

Preview Lab → · Contrast checker → · Palette generator →

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