#2D277E#2D277E

#2D277E is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.0% C 0.141 H 278.9°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#2D277E
RGBrgb(45, 39, 126)
HSLhsl(244, 53%, 32%)
HSVhsv(244, 69%, 49%)
CMYKcmyk(64.3%, 69%, 0%, 50.6%)
CIE-LABlab(22.00, 30.45, -48.40)
CIE-LCHlch(22.00, 57.19, 302.18°)
OKLaboklab(34.04% 0.0218 -0.1395)
OKLCHoklch(34.04% 0.141 278.9)
XYZxyz(5.5724, 3.5149, 20.1194)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D277E #787E27
analogous
#274D7E #2D277E #59277E
triadic
#2D277E #7E2D27 #277E2D
tetradic
#2D277E #7E274D #787E27 #277E59
square
#2D277E #7E274D #787E27 #277E59
split-complementary
#2D277E #7E5927 #4D7E27
monochromatic
#0C0A21 #1C194F #2D277E #3E35AD #5D55CA

Accessibility & contrast

On white

12.33
#2D277E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D277E
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D277E#FFFFFF#000000##FFFFFF
##2D277E1.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003881
Deuteranopia (green-blind)
#00317C
Tritanopia (blue-blind)
#003E4F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2d277e;
/* rgb */ color: rgb(45, 39, 126);
/* oklch */ color: oklch(34.0% 0.141 278.9);
Tailwind
colors: {
  custom: {
    50: '#7062a4',
    500: '#2d277e',
    950: '#000000',
  },
}
SCSS
$custom: #2d277e;
$custom-light: #7062a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d277e",
  "rgb": {
    "r": 45,
    "g": 39,
    "b": 126
  },
  "hsl": {
    "h": 244.138,
    "s": 52.727,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34038,
    "c": 0.14119,
    "h": 278.9
  },
  "luminance": 0.03515
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D277E

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

Preview Lab → · Contrast checker → · Palette generator →

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