#2C285C#2C285C

#2C285C is a dark, moderate blue. Relative luminance 0.028; OKLCH L 31.2% C 0.090 H 283.3°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#2C285C
RGBrgb(44, 40, 92)
HSLhsl(245, 39%, 26%)
HSVhsv(245, 57%, 36%)
CMYKcmyk(52.2%, 56.5%, 0%, 63.9%)
CIE-LABlab(19.33, 17.60, -30.72)
CIE-LCHlch(19.33, 35.40, 299.81°)
OKLaboklab(31.17% 0.0208 -0.0876)
OKLCHoklch(31.17% 0.09 283.3)
XYZxyz(3.7287, 2.8256, 10.4721)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C285C #585C28
analogous
#283E5C #2C285C #46285C
triadic
#2C285C #5C2C28 #285C2C
tetradic
#2C285C #5C283E #585C28 #285C46
square
#2C285C #5C283E #585C28 #285C46
split-complementary
#2C285C #5C4628 #3E5C28
monochromatic
#0A0915 #181531 #2C285C #403B87 #554DB1

Accessibility & contrast

On white

13.42
#2C285C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2C285C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C285C
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C285C#FFFFFF#000000##FFFFFF
##2C285C1.0013.421.5713.42
#FFFFFF13.421.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E315E
Deuteranopia (green-blind)
#0A2D5B
Tritanopia (blue-blind)
#1B333D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2c285c;
/* rgb */ color: rgb(44, 40, 92);
/* oklch */ color: oklch(31.2% 0.090 283.3);
Tailwind
colors: {
  custom: {
    50: '#69628a',
    500: '#2c285c',
    950: '#000000',
  },
}
SCSS
$custom: #2c285c;
$custom-light: #69628a;
$custom-dark: #000000;
JSON
{
  "hex": "#2c285c",
  "rgb": {
    "r": 44,
    "g": 40,
    "b": 92
  },
  "hsl": {
    "h": 244.615,
    "s": 39.394,
    "l": 25.882
  },
  "oklch": {
    "l": 0.31166,
    "c": 0.08999,
    "h": 283.3
  },
  "luminance": 0.02826
}

Semantic roles & 50–950 ramp

primary
#2C285C
secondary
#8A8F51
accent
#CF59C6
background
#F6F5F8
surface
#EBEAF0
border
#C6C6CB
text
#06050C
muted
#7A797D

Preview Lab

Preview with #2C285C

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

Preview Lab → · Contrast checker → · Palette generator →

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