#2D4281#2D4281

#2D4281 is a dark, moderate blue. Relative luminance 0.060; OKLCH L 39.7% C 0.109 H 267.4°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#2D4281
RGBrgb(45, 66, 129)
HSLhsl(225, 48%, 34%)
HSVhsv(225, 65%, 51%)
CMYKcmyk(65.1%, 48.8%, 0%, 49.4%)
CIE-LABlab(29.51, 13.34, -38.11)
CIE-LCHlch(29.51, 40.38, 289.29°)
OKLaboklab(39.71% -0.0049 -0.109)
OKLCHoklch(39.71% 0.109 267.4)
XYZxyz(6.9915, 6.0387, 21.5618)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4281 #816C2D
analogous
#2D6C81 #2D4281 #422D81
triadic
#2D4281 #812D42 #42812D
tetradic
#2D4281 #812D6C #816C2D #2D8142
square
#2D4281 #812D6C #816C2D #2D8142
split-complementary
#2D4281 #81422D #6C812D
monochromatic
#0D1426 #1D2B54 #2D4281 #3D59AE #617AC8

Accessibility & contrast

On white

9.51
#2D4281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#2D4281 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4281
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4281#FFFFFF#000000##FFFFFF
##2D42811.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224A83
Deuteranopia (green-blind)
#134280
Tritanopia (blue-blind)
#00505B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2d4281;
/* rgb */ color: rgb(45, 66, 129);
/* oklch */ color: oklch(39.7% 0.109 267.4);
Tailwind
colors: {
  custom: {
    50: '#6f76a6',
    500: '#2d4281',
    950: '#000000',
  },
}
SCSS
$custom: #2d4281;
$custom-light: #6f76a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4281",
  "rgb": {
    "r": 45,
    "g": 66,
    "b": 129
  },
  "hsl": {
    "h": 225,
    "s": 48.276,
    "l": 34.118
  },
  "oklch": {
    "l": 0.3971,
    "c": 0.10908,
    "h": 267.4
  },
  "luminance": 0.06039
}

Semantic roles & 50–950 ramp

primary
#2D4281
secondary
#AE9A5C
accent
#B650D8
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2D4281

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

Preview Lab → · Contrast checker → · Palette generator →

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