#2D3174#2D3174

#2D3174 is a dark, moderate blue. Relative luminance 0.040; OKLCH L 35.0% C 0.113 H 276.3°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#2D3174
RGBrgb(45, 49, 116)
HSLhsl(237, 44%, 32%)
HSVhsv(237, 61%, 45%)
CMYKcmyk(61.2%, 57.8%, 0%, 54.5%)
CIE-LABlab(23.72, 20.19, -39.24)
CIE-LCHlch(23.72, 44.13, 297.23°)
OKLaboklab(35.04% 0.0124 -0.1125)
OKLCHoklch(35.04% 0.113 276.3)
XYZxyz(5.3319, 4.0151, 17.0136)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3174 #74702D
analogous
#2D5574 #2D3174 #4D2D74
triadic
#2D3174 #742D31 #31742D
tetradic
#2D3174 #742D55 #74702D #2D744D
square
#2D3174 #742D55 #74702D #2D744D
split-complementary
#2D3174 #744D2D #55742D
monochromatic
#0B0C1C #1C1E48 #2D3174 #3E44A0 #5C61C0

Accessibility & contrast

On white

11.65
#2D3174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2D3174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3174
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3174#FFFFFF#000000##FFFFFF
##2D31741.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#023C76
Deuteranopia (green-blind)
#003673
Tritanopia (blue-blind)
#00414D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2d3174;
/* rgb */ color: rgb(45, 49, 116);
/* oklch */ color: oklch(35.0% 0.113 276.3);
Tailwind
colors: {
  custom: {
    50: '#6d699d',
    500: '#2d3174',
    950: '#000000',
  },
}
SCSS
$custom: #2d3174;
$custom-light: #6d699d;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3174",
  "rgb": {
    "r": 45,
    "g": 49,
    "b": 116
  },
  "hsl": {
    "h": 236.62,
    "s": 44.099,
    "l": 31.569
  },
  "oklch": {
    "l": 0.3504,
    "c": 0.11319,
    "h": 276.3
  },
  "luminance": 0.04015
}

Semantic roles & 50–950 ramp

primary
#2D3174
secondary
#A5A157
accent
#CD54D4
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #2D3174

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

Preview Lab → · Contrast checker → · Palette generator →

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