#2D276A#2D276A

#2D276A is a dark, moderate blue. Relative luminance 0.030; OKLCH L 32.2% C 0.113 H 282.1°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#2D276A
RGBrgb(45, 39, 106)
HSLhsl(245, 46%, 28%)
HSVhsv(245, 63%, 42%)
CMYKcmyk(57.5%, 63.2%, 0%, 58.4%)
CIE-LABlab(20.24, 23.44, -38.44)
CIE-LCHlch(20.24, 45.02, 301.37°)
OKLaboklab(32.21% 0.0236 -0.1102)
OKLCHoklch(32.21% 0.113 282.1)
XYZxyz(4.4084, 3.0493, 13.9891)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D276A #646A27
analogous
#27426A #2D276A #4E276A
triadic
#2D276A #6A2D27 #276A2D
tetradic
#2D276A #6A2742 #646A27 #276A4E
square
#2D276A #6A2742 #646A27 #276A4E
split-complementary
#2D276A #6A4E27 #426A27
monochromatic
#090816 #1A173D #2D276A #403797 #584EBE

Accessibility & contrast

On white

13.04
#2D276A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2D276A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D276A
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D276A#FFFFFF#000000##FFFFFF
##2D276A1.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336C
Deuteranopia (green-blind)
#002E69
Tritanopia (blue-blind)
#113744
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2d276a;
/* rgb */ color: rgb(45, 39, 106);
/* oklch */ color: oklch(32.2% 0.113 282.1);
Tailwind
colors: {
  custom: {
    50: '#6c6195',
    500: '#2d276a',
    950: '#000000',
  },
}
SCSS
$custom: #2d276a;
$custom-light: #6c6195;
$custom-dark: #000000;
JSON
{
  "hex": "#2d276a",
  "rgb": {
    "r": 45,
    "g": 39,
    "b": 106
  },
  "hsl": {
    "h": 245.373,
    "s": 46.207,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32209,
    "c": 0.11272,
    "h": 282.1
  },
  "luminance": 0.0305
}

Semantic roles & 50–950 ramp

primary
#2D276A
secondary
#969D50
accent
#D652CA
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07050D
muted
#7A797E

Preview Lab

Preview with #2D276A

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

Preview Lab → · Contrast checker → · Palette generator →

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