#2C285B#2C285B

#2C285B is a dark, moderate blue. Relative luminance 0.028; OKLCH L 31.1% C 0.088 H 283.5°. Best body text is #FFFFFF at 13.45:1 contrast (WCAG AA passes).

Color values

HEX#2C285B
RGBrgb(44, 40, 91)
HSLhsl(245, 39%, 26%)
HSVhsv(245, 56%, 36%)
CMYKcmyk(51.6%, 56%, 0%, 64.3%)
CIE-LABlab(19.26, 17.25, -30.17)
CIE-LCHlch(19.26, 34.76, 299.76°)
OKLaboklab(31.09% 0.0207 -0.0859)
OKLCHoklch(31.09% 0.088 283.5)
XYZxyz(3.6853, 2.8082, 10.2434)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C285B #575B28
analogous
#283D5B #2C285B #45285B
triadic
#2C285B #5B2C28 #285B2C
tetradic
#2C285B #5B283D #575B28 #285B45
square
#2C285B #5B283D #575B28 #285B45
split-complementary
#2C285B #5B4528 #3D5B28
monochromatic
#0A0915 #171530 #2C285B #413B86 #554DB0

Accessibility & contrast

On white

13.45
#2C285B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2C285B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C285B
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C285B#FFFFFF#000000##FFFFFF
##2C285B1.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F305D
Deuteranopia (green-blind)
#0C2D5A
Tritanopia (blue-blind)
#1C333D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2c285b;
/* rgb */ color: rgb(44, 40, 91);
/* oklch */ color: oklch(31.1% 0.088 283.5);
Tailwind
colors: {
  custom: {
    50: '#69628a',
    500: '#2c285b',
    950: '#000000',
  },
}
SCSS
$custom: #2c285b;
$custom-light: #69628a;
$custom-dark: #000000;
JSON
{
  "hex": "#2c285b",
  "rgb": {
    "r": 44,
    "g": 40,
    "b": 91
  },
  "hsl": {
    "h": 244.706,
    "s": 38.931,
    "l": 25.686
  },
  "oklch": {
    "l": 0.31089,
    "c": 0.0884,
    "h": 283.5
  },
  "luminance": 0.02808
}

Semantic roles & 50–950 ramp

primary
#2C285B
secondary
#898E51
accent
#CF59C6
background
#F6F5F8
surface
#EBEAF0
border
#C6C6CB
text
#06050B
muted
#7A797C

Preview Lab

Preview with #2C285B

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

Preview Lab → · Contrast checker → · Palette generator →

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