#2D277C#2D277C

#2D277C is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.8% C 0.138 H 279.2°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#2D277C
RGBrgb(45, 39, 124)
HSLhsl(244, 52%, 32%)
HSVhsv(244, 69%, 49%)
CMYKcmyk(63.7%, 68.5%, 0%, 51.4%)
CIE-LABlab(21.81, 29.76, -47.44)
CIE-LCHlch(21.81, 56.00, 302.10°)
OKLaboklab(33.85% 0.022 -0.1367)
OKLCHoklch(33.85% 0.138 279.2)
XYZxyz(5.4446, 3.4638, 19.4465)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D277C #767C27
analogous
#274C7C #2D277C #58277C
triadic
#2D277C #7C2D27 #277C2D
tetradic
#2D277C #7C274C #767C27 #277C58
square
#2D277C #7C274C #767C27 #277C58
split-complementary
#2D277C #7C5827 #4C7C27
monochromatic
#0B0A1F #1C184D #2D277C #3E36AB #5C54C9

Accessibility & contrast

On white

12.41
#2D277C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2D277C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D277C
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D277C#FFFFFF#000000##FFFFFF
##2D277C1.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387F
Deuteranopia (green-blind)
#00317A
Tritanopia (blue-blind)
#003D4E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2d277c;
/* rgb */ color: rgb(45, 39, 124);
/* oklch */ color: oklch(33.8% 0.138 279.2);
Tailwind
colors: {
  custom: {
    50: '#7062a3',
    500: '#2d277c',
    950: '#000000',
  },
}
SCSS
$custom: #2d277c;
$custom-light: #7062a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2d277c",
  "rgb": {
    "r": 45,
    "g": 39,
    "b": 124
  },
  "hsl": {
    "h": 244.235,
    "s": 52.147,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33847,
    "c": 0.13843,
    "h": 279.2
  },
  "luminance": 0.03464
}

Semantic roles & 50–950 ramp

primary
#2D277C
secondary
#A7AE51
accent
#DC4CD1
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2D277C

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

Preview Lab → · Contrast checker → · Palette generator →

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