#2D288C#2D288C

#2D288C is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.6% C 0.159 H 276.8°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#2D288C
RGBrgb(45, 40, 140)
HSLhsl(243, 56%, 35%)
HSVhsv(243, 71%, 55%)
CMYKcmyk(67.9%, 71.4%, 0%, 45.1%)
CIE-LABlab(23.57, 34.69, -54.62)
CIE-LCHlch(23.57, 64.70, 302.42°)
OKLaboklab(35.58% 0.0189 -0.1577)
OKLCHoklch(35.58% 0.159 276.8)
XYZxyz(6.5731, 3.9684, 25.2254)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D288C #878C28
analogous
#28558C #2D288C #5F288C
triadic
#2D288C #8C2D28 #288C2D
tetradic
#2D288C #8C2855 #878C28 #288C5F
square
#2D288C #8C2855 #878C28 #288C5F
split-complementary
#2D288C #8C5F28 #558C28
monochromatic
#0E0D2D #1E1A5C #2D288C #3C36BC #635ED1

Accessibility & contrast

On white

11.71
#2D288C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2D288C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D288C
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D288C#FFFFFF#000000##FFFFFF
##2D288C1.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8F
Deuteranopia (green-blind)
#00348A
Tritanopia (blue-blind)
#004357
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2d288c;
/* rgb */ color: rgb(45, 40, 140);
/* oklch */ color: oklch(35.6% 0.159 276.8);
Tailwind
colors: {
  custom: {
    50: '#7363af',
    500: '#2d288c',
    950: '#000000',
  },
}
SCSS
$custom: #2d288c;
$custom-light: #7363af;
$custom-dark: #000000;
JSON
{
  "hex": "#2d288c",
  "rgb": {
    "r": 45,
    "g": 40,
    "b": 140
  },
  "hsl": {
    "h": 243,
    "s": 55.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35578,
    "c": 0.15883,
    "h": 276.8
  },
  "luminance": 0.03969
}

Semantic roles & 50–950 ramp

primary
#2D288C
secondary
#B2B65A
accent
#DF49D7
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#090510
muted
#7B797F

Preview Lab

Preview with #2D288C

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

Preview Lab → · Contrast checker → · Palette generator →

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