#2D277A#2D277A

#2D277A is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.7% C 0.136 H 279.4°. Best body text is #FFFFFF at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#2D277A
RGBrgb(45, 39, 122)
HSLhsl(244, 52%, 32%)
HSVhsv(244, 68%, 48%)
CMYKcmyk(63.1%, 68%, 0%, 52.2%)
CIE-LABlab(21.63, 29.06, -46.46)
CIE-LCHlch(21.63, 54.80, 302.02°)
OKLaboklab(33.66% 0.0223 -0.1338)
OKLCHoklch(33.66% 0.136 279.4)
XYZxyz(5.3194, 3.4137, 18.7872)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D277A #747A27
analogous
#274B7A #2D277A #57277A
triadic
#2D277A #7A2D27 #277A2D
tetradic
#2D277A #7A274B #747A27 #277A57
square
#2D277A #7A274B #747A27 #277A57
split-complementary
#2D277A #7A5727 #4B7A27
monochromatic
#0B091D #1C184C #2D277A #3E36A8 #5C53C8

Accessibility & contrast

On white

12.48
#2D277A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2D277A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D277A
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D277A#FFFFFF#000000##FFFFFF
##2D277A1.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377D
Deuteranopia (green-blind)
#003178
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2d277a;
/* rgb */ color: rgb(45, 39, 122);
/* oklch */ color: oklch(33.7% 0.136 279.4);
Tailwind
colors: {
  custom: {
    50: '#7062a1',
    500: '#2d277a',
    950: '#000000',
  },
}
SCSS
$custom: #2d277a;
$custom-light: #7062a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d277a",
  "rgb": {
    "r": 45,
    "g": 39,
    "b": 122
  },
  "hsl": {
    "h": 244.337,
    "s": 51.553,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33658,
    "c": 0.13566,
    "h": 279.4
  },
  "luminance": 0.03414
}

Semantic roles & 50–950 ramp

primary
#2D277A
secondary
#A5AC51
accent
#DB4DD1
background
#F7F5FA
surface
#EDEAF3
border
#C8C6CD
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2D277A

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

Preview Lab → · Contrast checker → · Palette generator →

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