#2D285C#2D285C

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

Color values

HEX#2D285C
RGBrgb(45, 40, 92)
HSLhsl(246, 39%, 26%)
HSVhsv(246, 57%, 36%)
CMYKcmyk(51.1%, 56.5%, 0%, 63.9%)
CIE-LABlab(19.42, 17.86, -30.56)
CIE-LCHlch(19.42, 35.40, 300.30°)
OKLaboklab(31.26% 0.0222 -0.0871)
OKLCHoklch(31.26% 0.09 284.3)
XYZxyz(3.7722, 2.8480, 10.4741)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D285C #575C28
analogous
#283D5C #2D285C #47285C
triadic
#2D285C #5C2D28 #285C2D
tetradic
#2D285C #5C283D #575C28 #285C47
square
#2D285C #5C283D #575C28 #285C47
split-complementary
#2D285C #5C4728 #3D5C28
monochromatic
#0A0915 #181531 #2D285C #423B87 #574DB1

Accessibility & contrast

On white

13.38
#2D285C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D285C
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D285C#FFFFFF#000000##FFFFFF
##2D285C1.0013.381.5713.38
#FFFFFF13.381.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d285c;
/* rgb */ color: rgb(45, 40, 92);
/* oklch */ color: oklch(31.3% 0.090 284.3);
Tailwind
colors: {
  custom: {
    50: '#6a628a',
    500: '#2d285c',
    950: '#000000',
  },
}
SCSS
$custom: #2d285c;
$custom-light: #6a628a;
$custom-dark: #000000;
JSON
{
  "hex": "#2d285c",
  "rgb": {
    "r": 45,
    "g": 40,
    "b": 92
  },
  "hsl": {
    "h": 245.769,
    "s": 39.394,
    "l": 25.882
  },
  "oklch": {
    "l": 0.31259,
    "c": 0.08985,
    "h": 284.3
  },
  "luminance": 0.02848
}

Semantic roles & 50–950 ramp

primary
#2D285C
secondary
#898F51
accent
#CF59C4
background
#F6F5F8
surface
#EBEAF0
border
#C6C6CB
text
#07050C
muted
#7A797D

Preview Lab

Preview with #2D285C

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

Preview Lab → · Contrast checker → · Palette generator →

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