#2D286D#2D286D

#2D286D is a dark, moderate blue. Relative luminance 0.032; OKLCH L 32.7% C 0.116 H 281.1°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#2D286D
RGBrgb(45, 40, 109)
HSLhsl(244, 46%, 29%)
HSVhsv(244, 63%, 43%)
CMYKcmyk(58.7%, 63.3%, 0%, 57.3%)
CIE-LABlab(20.75, 23.82, -39.56)
CIE-LCHlch(20.75, 46.18, 301.05°)
OKLaboklab(32.66% 0.0223 -0.1135)
OKLCHoklch(32.66% 0.116 281.1)
XYZxyz(4.6004, 3.1793, 14.8363)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D286D #686D28
analogous
#28466D #2D286D #50286D
triadic
#2D286D #6D2D28 #286D2D
tetradic
#2D286D #6D2846 #686D28 #286D50
square
#2D286D #6D2846 #686D28 #286D50
split-complementary
#2D286D #6D5028 #466D28
monochromatic
#090816 #1B1840 #2D286D #3F389A #5850BF

Accessibility & contrast

On white

12.84
#2D286D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2D286D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D286D
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D286D#FFFFFF#000000##FFFFFF
##2D286D1.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346F
Deuteranopia (green-blind)
#002F6C
Tritanopia (blue-blind)
#0D3946
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2d286d;
/* rgb */ color: rgb(45, 40, 109);
/* oklch */ color: oklch(32.7% 0.116 281.1);
Tailwind
colors: {
  custom: {
    50: '#6d6297',
    500: '#2d286d',
    950: '#000000',
  },
}
SCSS
$custom: #2d286d;
$custom-light: #6d6297;
$custom-dark: #000000;
JSON
{
  "hex": "#2d286d",
  "rgb": {
    "r": 45,
    "g": 40,
    "b": 109
  },
  "hsl": {
    "h": 244.348,
    "s": 46.309,
    "l": 29.216
  },
  "oklch": {
    "l": 0.3266,
    "c": 0.1157,
    "h": 281.1
  },
  "luminance": 0.0318
}

Semantic roles & 50–950 ramp

primary
#2D286D
secondary
#9A9F51
accent
#D652CC
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050D
muted
#7A797E

Preview Lab

Preview with #2D286D

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

Preview Lab → · Contrast checker → · Palette generator →

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