#2D285D#2D285D

#2D285D is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.3% C 0.091 H 284.1°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#2D285D
RGBrgb(45, 40, 93)
HSLhsl(246, 40%, 26%)
HSVhsv(246, 57%, 36%)
CMYKcmyk(51.6%, 57%, 0%, 63.5%)
CIE-LABlab(19.50, 18.21, -31.11)
CIE-LCHlch(19.50, 36.04, 300.34°)
OKLaboklab(31.34% 0.0222 -0.0887)
OKLCHoklch(31.34% 0.091 284.1)
XYZxyz(3.8162, 2.8656, 10.7058)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D285D #585D28
analogous
#283D5D #2D285D #47285D
triadic
#2D285D #5D2D28 #285D2D
tetradic
#2D285D #5D283D #585D28 #285D47
square
#2D285D #5D283D #585D28 #285D47
split-complementary
#2D285D #5D4728 #3D5D28
monochromatic
#0A0915 #181632 #2D285D #423A88 #574DB2

Accessibility & contrast

On white

13.35
#2D285D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D285D
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D285D#FFFFFF#000000##FFFFFF
##2D285D1.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D315F
Deuteranopia (green-blind)
#0A2E5C
Tritanopia (blue-blind)
#1C343E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2d285d;
/* rgb */ color: rgb(45, 40, 93);
/* oklch */ color: oklch(31.3% 0.091 284.1);
Tailwind
colors: {
  custom: {
    50: '#6a628b',
    500: '#2d285d',
    950: '#000000',
  },
}
SCSS
$custom: #2d285d;
$custom-light: #6a628b;
$custom-dark: #000000;
JSON
{
  "hex": "#2d285d",
  "rgb": {
    "r": 45,
    "g": 40,
    "b": 93
  },
  "hsl": {
    "h": 245.66,
    "s": 39.85,
    "l": 26.078
  },
  "oklch": {
    "l": 0.31337,
    "c": 0.09141,
    "h": 284.1
  },
  "luminance": 0.02866
}

Semantic roles & 50–950 ramp

primary
#2D285D
secondary
#8A9051
accent
#D058C4
background
#F6F5F8
surface
#EBEAF0
border
#C6C6CB
text
#07050C
muted
#7A797D

Preview Lab

Preview with #2D285D

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

Preview Lab → · Contrast checker → · Palette generator →

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