#2D276F#2D276F

#2D276F is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.6% C 0.120 H 281.2°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#2D276F
RGBrgb(45, 39, 111)
HSLhsl(245, 48%, 29%)
HSVhsv(245, 65%, 44%)
CMYKcmyk(59.5%, 64.9%, 0%, 56.5%)
CIE-LABlab(20.66, 25.20, -41.00)
CIE-LCHlch(20.66, 48.12, 301.58°)
OKLaboklab(32.65% 0.0233 -0.1178)
OKLCHoklch(32.65% 0.12 281.2)
XYZxyz(4.6761, 3.1563, 15.3987)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D276F #696F27
analogous
#27456F #2D276F #51276F
triadic
#2D276F #6F2D27 #276F2D
tetradic
#2D276F #6F2745 #696F27 #276F51
square
#2D276F #6F2745 #696F27 #276F51
split-complementary
#2D276F #6F5127 #456F27
monochromatic
#090817 #1B1742 #2D276F #3F379C #594FC1

Accessibility & contrast

On white

12.87
#2D276F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D276F
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D276F#FFFFFF#000000##FFFFFF
##2D276F1.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003471
Deuteranopia (green-blind)
#002F6E
Tritanopia (blue-blind)
#0A3947
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2d276f;
/* rgb */ color: rgb(45, 39, 111);
/* oklch */ color: oklch(32.6% 0.120 281.2);
Tailwind
colors: {
  custom: {
    50: '#6d6199',
    500: '#2d276f',
    950: '#000000',
  },
}
SCSS
$custom: #2d276f;
$custom-light: #6d6199;
$custom-dark: #000000;
JSON
{
  "hex": "#2d276f",
  "rgb": {
    "r": 45,
    "g": 39,
    "b": 111
  },
  "hsl": {
    "h": 245,
    "s": 48,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32648,
    "c": 0.12004,
    "h": 281.2
  },
  "luminance": 0.03157
}

Semantic roles & 50–950 ramp

primary
#2D276F
secondary
#9BA250
accent
#D850CC
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2D276F

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

Preview Lab → · Contrast checker → · Palette generator →

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