#2D3772#2D3772

#2D3772 is a dark, moderate blue. Relative luminance 0.045; OKLCH L 36.2% C 0.101 H 273.1°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#2D3772
RGBrgb(45, 55, 114)
HSLhsl(231, 43%, 31%)
HSVhsv(231, 61%, 45%)
CMYKcmyk(60.5%, 51.8%, 0%, 55.3%)
CIE-LABlab(25.27, 15.31, -35.46)
CIE-LCHlch(25.27, 38.62, 293.35°)
OKLaboklab(36.16% 0.0054 -0.1013)
OKLCHoklch(36.16% 0.101 273.1)
XYZxyz(5.4846, 4.5048, 16.4968)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3772 #72682D
analogous
#2D5972 #2D3772 #452D72
triadic
#2D3772 #722D37 #37722D
tetradic
#2D3772 #722D59 #72682D #2D7245
square
#2D3772 #722D59 #72682D #2D7245
split-complementary
#2D3772 #72452D #59722D
monochromatic
#0A0D1A #1C2246 #2D3772 #3E4C9E #5B69BE

Accessibility & contrast

On white

11.05
#2D3772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2D3772 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3772
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3772#FFFFFF#000000##FFFFFF
##2D37721.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#193F74
Deuteranopia (green-blind)
#0D3971
Tritanopia (blue-blind)
#00444F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2d3772;
/* rgb */ color: rgb(45, 55, 114);
/* oklch */ color: oklch(36.2% 0.101 273.1);
Tailwind
colors: {
  custom: {
    50: '#6d6d9b',
    500: '#2d3772',
    950: '#000000',
  },
}
SCSS
$custom: #2d3772;
$custom-light: #6d6d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3772",
  "rgb": {
    "r": 45,
    "g": 55,
    "b": 114
  },
  "hsl": {
    "h": 231.304,
    "s": 43.396,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36161,
    "c": 0.10146,
    "h": 273.1
  },
  "luminance": 0.04505
}

Semantic roles & 50–950 ramp

primary
#2D3772
secondary
#A39857
accent
#C155D3
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07070E
muted
#7A7A7E

Preview Lab

Preview with #2D3772

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

Preview Lab → · Contrast checker → · Palette generator →

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