#2D277F#2D277F

#2D277F is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.1% C 0.143 H 278.7°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#2D277F
RGBrgb(45, 39, 127)
HSLhsl(244, 53%, 33%)
HSVhsv(244, 69%, 50%)
CMYKcmyk(64.6%, 69.3%, 0%, 50.2%)
CIE-LABlab(22.09, 30.80, -48.88)
CIE-LCHlch(22.09, 57.78, 302.22°)
OKLaboklab(34.13% 0.0216 -0.1409)
OKLCHoklch(34.13% 0.143 278.7)
XYZxyz(5.6372, 3.5408, 20.4609)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D277F #797F27
analogous
#274D7F #2D277F #59277F
triadic
#2D277F #7F2D27 #277F2D
tetradic
#2D277F #7F274D #797F27 #277F59
square
#2D277F #7F274D #797F27 #277F59
split-complementary
#2D277F #7F5927 #4D7F27
monochromatic
#0C0A21 #1C1950 #2D277F #3E35AE #5D55CB

Accessibility & contrast

On white

12.29
#2D277F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2D277F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D277F
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D277F#FFFFFF#000000##FFFFFF
##2D277F1.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d277f;
/* rgb */ color: rgb(45, 39, 127);
/* oklch */ color: oklch(34.1% 0.143 278.7);
Tailwind
colors: {
  custom: {
    50: '#7162a5',
    500: '#2d277f',
    950: '#000000',
  },
}
SCSS
$custom: #2d277f;
$custom-light: #7162a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d277f",
  "rgb": {
    "r": 45,
    "g": 39,
    "b": 127
  },
  "hsl": {
    "h": 244.091,
    "s": 53.012,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34134,
    "c": 0.14256,
    "h": 278.7
  },
  "luminance": 0.03541
}

Semantic roles & 50–950 ramp

primary
#2D277F
secondary
#A9B052
accent
#DC4BD3
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2D277F

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

Preview Lab → · Contrast checker → · Palette generator →

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