#2D288F#2D288F

#2D288F is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.9% C 0.163 H 276.5°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#2D288F
RGBrgb(45, 40, 143)
HSLhsl(243, 56%, 36%)
HSVhsv(243, 72%, 56%)
CMYKcmyk(68.5%, 72%, 0%, 43.9%)
CIE-LABlab(23.86, 35.72, -55.99)
CIE-LCHlch(23.86, 66.42, 302.53°)
OKLaboklab(35.88% 0.0184 -0.1617)
OKLCHoklch(35.88% 0.163 276.5)
XYZxyz(6.7973, 4.0580, 26.4063)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D288F #8A8F28
analogous
#28568F #2D288F #60288F
triadic
#2D288F #8F2D28 #288F2D
tetradic
#2D288F #8F2856 #8A8F28 #288F60
square
#2D288F #8F2856 #8A8F28 #288F60
split-complementary
#2D288F #8F6028 #568F28
monochromatic
#0F0D2F #1E1B5F #2D288F #3C35BF #655FD2

Accessibility & contrast

On white

11.59
#2D288F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D288F
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D288F#FFFFFF#000000##FFFFFF
##2D288F1.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d288f;
/* rgb */ color: rgb(45, 40, 143);
/* oklch */ color: oklch(35.9% 0.163 276.5);
Tailwind
colors: {
  custom: {
    50: '#7463b1',
    500: '#2d288f',
    950: '#000000',
  },
}
SCSS
$custom: #2d288f;
$custom-light: #7463b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d288f",
  "rgb": {
    "r": 45,
    "g": 40,
    "b": 143
  },
  "hsl": {
    "h": 242.913,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.3588,
    "c": 0.16276,
    "h": 276.5
  },
  "luminance": 0.04059
}

Semantic roles & 50–950 ramp

primary
#2D288F
secondary
#B3B85B
accent
#E048D8
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2D288F

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

Preview Lab → · Contrast checker → · Palette generator →

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