#2C288F#2C288F

#2C288F is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.8% C 0.163 H 276.0°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#2C288F
RGBrgb(44, 40, 143)
HSLhsl(242, 56%, 36%)
HSVhsv(242, 72%, 56%)
CMYKcmyk(69.2%, 72%, 0%, 43.9%)
CIE-LABlab(23.79, 35.59, -56.12)
CIE-LCHlch(23.79, 66.45, 302.39°)
OKLaboklab(35.81% 0.0171 -0.1621)
OKLCHoklch(35.81% 0.163 276)
XYZxyz(6.7538, 4.0356, 26.4043)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C288F #8B8F28
analogous
#28578F #2C288F #5F288F
triadic
#2C288F #8F2C28 #288F2C
tetradic
#2C288F #8F2857 #8B8F28 #288F5F
square
#2C288F #8F2857 #8B8F28 #288F5F
split-complementary
#2C288F #8F5F28 #578F28
monochromatic
#0F0D2F #1D1B5F #2C288F #3B35BF #645FD2

Accessibility & contrast

On white

11.62
#2C288F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2C288F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C288F
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C288F#FFFFFF#000000##FFFFFF
##2C288F1.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#00348D
Tritanopia (blue-blind)
#004458
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2c288f;
/* rgb */ color: rgb(44, 40, 143);
/* oklch */ color: oklch(35.8% 0.163 276.0);
Tailwind
colors: {
  custom: {
    50: '#7463b1',
    500: '#2c288f',
    950: '#000000',
  },
}
SCSS
$custom: #2c288f;
$custom-light: #7463b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2c288f",
  "rgb": {
    "r": 44,
    "g": 40,
    "b": 143
  },
  "hsl": {
    "h": 242.33,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35808,
    "c": 0.16301,
    "h": 276
  },
  "luminance": 0.04036
}

Semantic roles & 50–950 ramp

primary
#2C288F
secondary
#B4B85B
accent
#E048DA
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2C288F

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

Preview Lab → · Contrast checker → · Palette generator →

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