#2D288D#2D288D

#2D288D is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.7% C 0.160 H 276.7°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#2D288D
RGBrgb(45, 40, 141)
HSLhsl(243, 56%, 35%)
HSVhsv(243, 72%, 55%)
CMYKcmyk(68.1%, 71.6%, 0%, 44.7%)
CIE-LABlab(23.66, 35.03, -55.08)
CIE-LCHlch(23.66, 65.27, 302.46°)
OKLaboklab(35.68% 0.0188 -0.159)
OKLCHoklch(35.68% 0.16 276.7)
XYZxyz(6.6471, 3.9980, 25.6155)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D288D #888D28
analogous
#28568D #2D288D #5F288D
triadic
#2D288D #8D2D28 #288D2D
tetradic
#2D288D #8D2856 #888D28 #288D5F
square
#2D288D #8D2856 #888D28 #288D5F
split-complementary
#2D288D #8D5F28 #568D28
monochromatic
#0F0D2E #1E1A5D #2D288D #3C36BD #645ED1

Accessibility & contrast

On white

11.67
#2D288D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2D288D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D288D
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D288D#FFFFFF#000000##FFFFFF
##2D288D1.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D90
Deuteranopia (green-blind)
#00348B
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2d288d;
/* rgb */ color: rgb(45, 40, 141);
/* oklch */ color: oklch(35.7% 0.160 276.7);
Tailwind
colors: {
  custom: {
    50: '#7463af',
    500: '#2d288d',
    950: '#000000',
  },
}
SCSS
$custom: #2d288d;
$custom-light: #7463af;
$custom-dark: #000000;
JSON
{
  "hex": "#2d288d",
  "rgb": {
    "r": 45,
    "g": 40,
    "b": 141
  },
  "hsl": {
    "h": 242.97,
    "s": 55.801,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35678,
    "c": 0.16014,
    "h": 276.7
  },
  "luminance": 0.03999
}

Semantic roles & 50–950 ramp

primary
#2D288D
secondary
#B2B75A
accent
#DF49D8
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#090511
muted
#7B7980

Preview Lab

Preview with #2D288D

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

Preview Lab → · Contrast checker → · Palette generator →

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