#2D278B#2D278B

#2D278B is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.3% C 0.159 H 277.2°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#2D278B
RGBrgb(45, 39, 139)
HSLhsl(244, 56%, 35%)
HSVhsv(244, 72%, 55%)
CMYKcmyk(67.6%, 71.9%, 0%, 45.5%)
CIE-LABlab(23.25, 34.96, -54.52)
CIE-LCHlch(23.25, 64.77, 302.67°)
OKLaboklab(35.32% 0.0198 -0.1574)
OKLCHoklch(35.32% 0.159 277.2)
XYZxyz(6.4664, 3.8725, 24.8278)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D278B #858B27
analogous
#27538B #2D278B #5F278B
triadic
#2D278B #8B2D27 #278B2D
tetradic
#2D278B #8B2753 #858B27 #278B5F
square
#2D278B #8B2753 #858B27 #278B5F
split-complementary
#2D278B #8B5F27 #538B27
monochromatic
#0E0C2B #1E1A5B #2D278B #3C34BB #625BD1

Accessibility & contrast

On white

11.83
#2D278B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2D278B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D278B
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D278B#FFFFFF#000000##FFFFFF
##2D278B1.0011.831.7711.83
#FFFFFF11.831.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8E
Deuteranopia (green-blind)
#003389
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2d278b;
/* rgb */ color: rgb(45, 39, 139);
/* oklch */ color: oklch(35.3% 0.159 277.2);
Tailwind
colors: {
  custom: {
    50: '#7362ae',
    500: '#2d278b',
    950: '#000000',
  },
}
SCSS
$custom: #2d278b;
$custom-light: #7362ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2d278b",
  "rgb": {
    "r": 45,
    "g": 39,
    "b": 139
  },
  "hsl": {
    "h": 243.6,
    "s": 56.18,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35317,
    "c": 0.15866,
    "h": 277.2
  },
  "luminance": 0.03873
}

Semantic roles & 50–950 ramp

primary
#2D278B
secondary
#B0B658
accent
#DF48D6
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2D278B

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

Preview Lab → · Contrast checker → · Palette generator →

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