#2D277D#2D277D

#2D277D is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.9% C 0.140 H 279.0°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#2D277D
RGBrgb(45, 39, 125)
HSLhsl(244, 52%, 32%)
HSVhsv(244, 69%, 49%)
CMYKcmyk(64%, 68.8%, 0%, 51%)
CIE-LABlab(21.91, 30.11, -47.92)
CIE-LCHlch(21.91, 56.59, 302.14°)
OKLaboklab(33.94% 0.0219 -0.1381)
OKLCHoklch(33.94% 0.14 279)
XYZxyz(5.5082, 3.4892, 19.7813)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D277D #777D27
analogous
#274C7D #2D277D #58277D
triadic
#2D277D #7D2D27 #277D2D
tetradic
#2D277D #7D274C #777D27 #277D58
square
#2D277D #7D274C #777D27 #277D58
split-complementary
#2D277D #7D5827 #4C7D27
monochromatic
#0B0A20 #1C184E #2D277D #3E36AC #5D55CA

Accessibility & contrast

On white

12.37
#2D277D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2D277D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D277D
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D277D#FFFFFF#000000##FFFFFF
##2D277D1.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003880
Deuteranopia (green-blind)
#00317B
Tritanopia (blue-blind)
#003D4E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2d277d;
/* rgb */ color: rgb(45, 39, 125);
/* oklch */ color: oklch(33.9% 0.140 279.0);
Tailwind
colors: {
  custom: {
    50: '#7062a3',
    500: '#2d277d',
    950: '#000000',
  },
}
SCSS
$custom: #2d277d;
$custom-light: #7062a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2d277d",
  "rgb": {
    "r": 45,
    "g": 39,
    "b": 125
  },
  "hsl": {
    "h": 244.186,
    "s": 52.439,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33942,
    "c": 0.13982,
    "h": 279
  },
  "luminance": 0.0349
}

Semantic roles & 50–950 ramp

primary
#2D277D
secondary
#A8AF51
accent
#DC4CD2
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2D277D

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

Preview Lab → · Contrast checker → · Palette generator →

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