#2D276D#2D276D

#2D276D is a dark, moderate blue. Relative luminance 0.031; OKLCH L 32.5% C 0.117 H 281.5°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#2D276D
RGBrgb(45, 39, 109)
HSLhsl(245, 47%, 29%)
HSVhsv(245, 64%, 43%)
CMYKcmyk(58.7%, 64.2%, 0%, 57.3%)
CIE-LABlab(20.49, 24.49, -39.98)
CIE-LCHlch(20.49, 46.88, 301.49°)
OKLaboklab(32.47% 0.0234 -0.1148)
OKLCHoklch(32.47% 0.117 281.5)
XYZxyz(4.5672, 3.1128, 14.8252)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D276D #676D27
analogous
#27446D #2D276D #50276D
triadic
#2D276D #6D2D27 #276D2D
tetradic
#2D276D #6D2744 #676D27 #276D50
square
#2D276D #6D2744 #676D27 #276D50
split-complementary
#2D276D #6D5027 #446D27
monochromatic
#090817 #1A1740 #2D276D #40379A #584FC0

Accessibility & contrast

On white

12.94
#2D276D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2D276D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D276D
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D276D#FFFFFF#000000##FFFFFF
##2D276D1.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346F
Deuteranopia (green-blind)
#002F6C
Tritanopia (blue-blind)
#0D3846
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2d276d;
/* rgb */ color: rgb(45, 39, 109);
/* oklch */ color: oklch(32.5% 0.117 281.5);
Tailwind
colors: {
  custom: {
    50: '#6d6197',
    500: '#2d276d',
    950: '#000000',
  },
}
SCSS
$custom: #2d276d;
$custom-light: #6d6197;
$custom-dark: #000000;
JSON
{
  "hex": "#2d276d",
  "rgb": {
    "r": 45,
    "g": 39,
    "b": 109
  },
  "hsl": {
    "h": 245.143,
    "s": 47.297,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32471,
    "c": 0.11712,
    "h": 281.5
  },
  "luminance": 0.03113
}

Semantic roles & 50–950 ramp

primary
#2D276D
secondary
#99A050
accent
#D751CB
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050D
muted
#7A797E

Preview Lab

Preview with #2D276D

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

Preview Lab → · Contrast checker → · Palette generator →

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