#2C288C#2C288C

#2C288C is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.5% C 0.159 H 276.3°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#2C288C
RGBrgb(44, 40, 140)
HSLhsl(242, 56%, 35%)
HSVhsv(242, 71%, 55%)
CMYKcmyk(68.6%, 71.4%, 0%, 45.1%)
CIE-LABlab(23.49, 34.56, -54.74)
CIE-LCHlch(23.49, 64.74, 302.26°)
OKLaboklab(35.5% 0.0176 -0.1581)
OKLCHoklch(35.5% 0.159 276.3)
XYZxyz(6.5296, 3.9459, 25.2234)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C288C #888C28
analogous
#28568C #2C288C #5E288C
triadic
#2C288C #8C2C28 #288C2C
tetradic
#2C288C #8C2856 #888C28 #288C5E
square
#2C288C #8C2856 #888C28 #288C5E
split-complementary
#2C288C #8C5E28 #568C28
monochromatic
#0E0D2D #1D1A5C #2C288C #3B36BC #625ED1

Accessibility & contrast

On white

11.74
#2C288C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2C288C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C288C
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C288C#FFFFFF#000000##FFFFFF
##2C288C1.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8F
Deuteranopia (green-blind)
#00348A
Tritanopia (blue-blind)
#004357
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2c288c;
/* rgb */ color: rgb(44, 40, 140);
/* oklch */ color: oklch(35.5% 0.159 276.3);
Tailwind
colors: {
  custom: {
    50: '#7363af',
    500: '#2c288c',
    950: '#000000',
  },
}
SCSS
$custom: #2c288c;
$custom-light: #7363af;
$custom-dark: #000000;
JSON
{
  "hex": "#2c288c",
  "rgb": {
    "r": 44,
    "g": 40,
    "b": 140
  },
  "hsl": {
    "h": 242.4,
    "s": 55.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35505,
    "c": 0.15906,
    "h": 276.3
  },
  "luminance": 0.03947
}

Semantic roles & 50–950 ramp

primary
#2C288C
secondary
#B3B65A
accent
#DF49D9
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#090510
muted
#7B797F

Preview Lab

Preview with #2C288C

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

Preview Lab → · Contrast checker → · Palette generator →

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