#2D288E#2D288E

#2D288E is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.8% C 0.161 H 276.6°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#2D288E
RGBrgb(45, 40, 142)
HSLhsl(243, 56%, 36%)
HSVhsv(243, 72%, 56%)
CMYKcmyk(68.3%, 71.8%, 0%, 44.3%)
CIE-LABlab(23.76, 35.38, -55.54)
CIE-LCHlch(23.76, 65.85, 302.50°)
OKLaboklab(35.78% 0.0186 -0.1604)
OKLCHoklch(35.78% 0.161 276.6)
XYZxyz(6.7219, 4.0279, 26.0092)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D288E #898E28
analogous
#28568E #2D288E #60288E
triadic
#2D288E #8E2D28 #288E2D
tetradic
#2D288E #8E2856 #898E28 #288E60
square
#2D288E #8E2856 #898E28 #288E60
split-complementary
#2D288E #8E6028 #568E28
monochromatic
#0F0D2F #1E1B5E #2D288E #3C35BE #645FD2

Accessibility & contrast

On white

11.63
#2D288E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2D288E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D288E
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D288E#FFFFFF#000000##FFFFFF
##2D288E1.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D91
Deuteranopia (green-blind)
#00348C
Tritanopia (blue-blind)
#004458
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2d288e;
/* rgb */ color: rgb(45, 40, 142);
/* oklch */ color: oklch(35.8% 0.161 276.6);
Tailwind
colors: {
  custom: {
    50: '#7463b0',
    500: '#2d288e',
    950: '#000000',
  },
}
SCSS
$custom: #2d288e;
$custom-light: #7463b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d288e",
  "rgb": {
    "r": 45,
    "g": 40,
    "b": 142
  },
  "hsl": {
    "h": 242.941,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35779,
    "c": 0.16146,
    "h": 276.6
  },
  "luminance": 0.04028
}

Semantic roles & 50–950 ramp

primary
#2D288E
secondary
#B3B75B
accent
#DF48D8
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2D288E

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

Preview Lab → · Contrast checker → · Palette generator →

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