#2D278F#2D278F

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

Color values

HEX#2D278F
RGBrgb(45, 39, 143)
HSLhsl(243, 57%, 36%)
HSVhsv(243, 73%, 56%)
CMYKcmyk(68.5%, 72.7%, 0%, 43.9%)
CIE-LABlab(23.64, 36.32, -56.35)
CIE-LCHlch(23.64, 67.05, 302.80°)
OKLaboklab(35.72% 0.0191 -0.1628)
OKLCHoklch(35.72% 0.164 276.7)
XYZxyz(6.7640, 3.9915, 26.3953)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D278F #898F27
analogous
#27558F #2D278F #61278F
triadic
#2D278F #8F2D27 #278F2D
tetradic
#2D278F #8F2755 #898F27 #278F61
square
#2D278F #8F2755 #898F27 #278F61
split-complementary
#2D278F #8F6127 #558F27
monochromatic
#0F0D2F #1E1A5F #2D278F #3C34BF #645DD3

Accessibility & contrast

On white

11.68
#2D278F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D278F
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D278F#FFFFFF#000000##FFFFFF
##2D278F1.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d278f;
/* rgb */ color: rgb(45, 39, 143);
/* oklch */ color: oklch(35.7% 0.164 276.7);
Tailwind
colors: {
  custom: {
    50: '#7462b1',
    500: '#2d278f',
    950: '#000000',
  },
}
SCSS
$custom: #2d278f;
$custom-light: #7462b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d278f",
  "rgb": {
    "r": 45,
    "g": 39,
    "b": 143
  },
  "hsl": {
    "h": 243.462,
    "s": 57.143,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35723,
    "c": 0.16389,
    "h": 276.7
  },
  "luminance": 0.03992
}

Semantic roles & 50–950 ramp

primary
#2D278F
secondary
#B3B85A
accent
#E047D8
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2D278F

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

Preview Lab → · Contrast checker → · Palette generator →

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