#2D278C#2D278C

#2D278C is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.4% C 0.160 H 277.0°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#2D278C
RGBrgb(45, 39, 140)
HSLhsl(244, 56%, 35%)
HSVhsv(244, 72%, 55%)
CMYKcmyk(67.9%, 72.1%, 0%, 45.1%)
CIE-LABlab(23.34, 35.30, -54.98)
CIE-LCHlch(23.34, 65.34, 302.70°)
OKLaboklab(35.42% 0.0196 -0.1588)
OKLCHoklch(35.42% 0.16 277)
XYZxyz(6.5398, 3.9018, 25.2143)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D278C #868C27
analogous
#27548C #2D278C #5F278C
triadic
#2D278C #8C2D27 #278C2D
tetradic
#2D278C #8C2754 #868C27 #278C5F
square
#2D278C #8C2754 #868C27 #278C5F
split-complementary
#2D278C #8C5F27 #548C27
monochromatic
#0E0C2C #1E1A5C #2D278C #3C34BC #635CD2

Accessibility & contrast

On white

11.80
#2D278C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2D278C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D278C
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D278C#FFFFFF#000000##FFFFFF
##2D278C1.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d278c;
/* rgb */ color: rgb(45, 39, 140);
/* oklch */ color: oklch(35.4% 0.160 277.0);
Tailwind
colors: {
  custom: {
    50: '#7362af',
    500: '#2d278c',
    950: '#000000',
  },
}
SCSS
$custom: #2d278c;
$custom-light: #7362af;
$custom-dark: #000000;
JSON
{
  "hex": "#2d278c",
  "rgb": {
    "r": 45,
    "g": 39,
    "b": 140
  },
  "hsl": {
    "h": 243.564,
    "s": 56.425,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35418,
    "c": 0.15997,
    "h": 277
  },
  "luminance": 0.03902
}

Semantic roles & 50–950 ramp

primary
#2D278C
secondary
#B1B758
accent
#E048D7
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#090510
muted
#7B797F

Preview Lab

Preview with #2D278C

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

Preview Lab → · Contrast checker → · Palette generator →

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