#2C287C#2C287C

#2C287C is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.9% C 0.137 H 278.3°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#2C287C
RGBrgb(44, 40, 124)
HSLhsl(243, 51%, 32%)
HSVhsv(243, 68%, 49%)
CMYKcmyk(64.5%, 67.7%, 0%, 51.4%)
CIE-LABlab(21.97, 28.95, -47.18)
CIE-LCHlch(21.97, 55.35, 301.53°)
OKLaboklab(33.94% 0.0198 -0.1359)
OKLCHoklch(33.94% 0.137 278.3)
XYZxyz(5.4344, 3.5079, 19.4556)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C287C #787C28
analogous
#284E7C #2C287C #56287C
triadic
#2C287C #7C2C28 #287C2C
tetradic
#2C287C #7C284E #787C28 #287C56
square
#2C287C #7C284E #787C28 #287C56
split-complementary
#2C287C #7C5628 #4E7C28
monochromatic
#0B0A1F #1C194E #2C287C #3C37AA #5B56C8

Accessibility & contrast

On white

12.34
#2C287C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2C287C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C287C
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C287C#FFFFFF#000000##FFFFFF
##2C287C1.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387F
Deuteranopia (green-blind)
#00317A
Tritanopia (blue-blind)
#003E4E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2c287c;
/* rgb */ color: rgb(44, 40, 124);
/* oklch */ color: oklch(33.9% 0.137 278.3);
Tailwind
colors: {
  custom: {
    50: '#6f62a3',
    500: '#2c287c',
    950: '#000000',
  },
}
SCSS
$custom: #2c287c;
$custom-light: #6f62a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2c287c",
  "rgb": {
    "r": 44,
    "g": 40,
    "b": 124
  },
  "hsl": {
    "h": 242.857,
    "s": 51.22,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33942,
    "c": 0.13737,
    "h": 278.3
  },
  "luminance": 0.03508
}

Semantic roles & 50–950 ramp

primary
#2C287C
secondary
#A9AD52
accent
#DB4DD4
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2C287C

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

Preview Lab → · Contrast checker → · Palette generator →

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