#2D276E#2D276E

#2D276E is a dark, moderate blue. Relative luminance 0.031; OKLCH L 32.6% C 0.119 H 281.4°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#2D276E
RGBrgb(45, 39, 110)
HSLhsl(245, 48%, 29%)
HSVhsv(245, 65%, 43%)
CMYKcmyk(59.1%, 64.5%, 0%, 56.9%)
CIE-LABlab(20.57, 24.84, -40.49)
CIE-LCHlch(20.57, 47.50, 301.54°)
OKLaboklab(32.56% 0.0234 -0.1163)
OKLCHoklch(32.56% 0.119 281.4)
XYZxyz(4.6213, 3.1344, 15.1103)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D276E #686E27
analogous
#27456E #2D276E #51276E
triadic
#2D276E #6E2D27 #276E2D
tetradic
#2D276E #6E2745 #686E27 #276E51
square
#2D276E #6E2745 #686E27 #276E51
split-complementary
#2D276E #6E5127 #456E27
monochromatic
#090817 #1B1741 #2D276E #3F379B #584FC1

Accessibility & contrast

On white

12.91
#2D276E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2D276E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D276E
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D276E#FFFFFF#000000##FFFFFF
##2D276E1.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003470
Deuteranopia (green-blind)
#002F6D
Tritanopia (blue-blind)
#0C3846
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2d276e;
/* rgb */ color: rgb(45, 39, 110);
/* oklch */ color: oklch(32.6% 0.119 281.4);
Tailwind
colors: {
  custom: {
    50: '#6d6198',
    500: '#2d276e',
    950: '#000000',
  },
}
SCSS
$custom: #2d276e;
$custom-light: #6d6198;
$custom-dark: #000000;
JSON
{
  "hex": "#2d276e",
  "rgb": {
    "r": 45,
    "g": 39,
    "b": 110
  },
  "hsl": {
    "h": 245.07,
    "s": 47.651,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32559,
    "c": 0.11858,
    "h": 281.4
  },
  "luminance": 0.03135
}

Semantic roles & 50–950 ramp

primary
#2D276E
secondary
#9AA150
accent
#D751CC
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #2D276E

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

Preview Lab → · Contrast checker → · Palette generator →

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