#2D4170#2D4170

#2D4170 is a dark, moderate blue. Relative luminance 0.055; OKLCH L 38.3% C 0.084 H 265.3°. Best body text is #FFFFFF at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#2D4170
RGBrgb(45, 65, 112)
HSLhsl(222, 43%, 31%)
HSVhsv(222, 60%, 44%)
CMYKcmyk(59.8%, 42%, 0%, 56.1%)
CIE-LABlab(28.14, 7.69, -29.62)
CIE-LCHlch(28.14, 30.60, 284.56°)
OKLaboklab(38.31% -0.007 -0.0841)
OKLCHoklch(38.31% 0.084 265.3)
XYZxyz(5.8961, 5.5079, 16.0785)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4170 #705C2D
analogous
#2D6270 #2D4170 #3A2D70
triadic
#2D4170 #702D41 #41702D
tetradic
#2D4170 #702D62 #705C2D #2D703A
square
#2D4170 #702D62 #705C2D #2D703A
split-complementary
#2D4170 #703A2D #62702D
monochromatic
#0A0E19 #1B2844 #2D4170 #3F5A9C #5A78BD

Accessibility & contrast

On white

9.99
#2D4170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#2D4170 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4170
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4170#FFFFFF#000000##FFFFFF
##2D41701.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D4672
Deuteranopia (green-blind)
#25406F
Tritanopia (blue-blind)
#004B53
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2d4170;
/* rgb */ color: rgb(45, 65, 112);
/* oklch */ color: oklch(38.3% 0.084 265.3);
Tailwind
colors: {
  custom: {
    50: '#6c7599',
    500: '#2d4170',
    950: '#000000',
  },
}
SCSS
$custom: #2d4170;
$custom-light: #6c7599;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4170",
  "rgb": {
    "r": 45,
    "g": 65,
    "b": 112
  },
  "hsl": {
    "h": 222.09,
    "s": 42.675,
    "l": 30.784
  },
  "oklch": {
    "l": 0.38307,
    "c": 0.08435,
    "h": 265.3
  },
  "luminance": 0.05508
}

Semantic roles & 50–950 ramp

primary
#2D4170
secondary
#A28B57
accent
#AD55D2
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07080E
muted
#7A7B7E

Preview Lab

Preview with #2D4170

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

Preview Lab → · Contrast checker → · Palette generator →

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