#2D4181#2D4181

#2D4181 is a dark, moderate blue. Relative luminance 0.059; OKLCH L 39.5% C 0.110 H 268.0°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#2D4181
RGBrgb(45, 65, 129)
HSLhsl(226, 48%, 34%)
HSVhsv(226, 65%, 51%)
CMYKcmyk(65.1%, 49.6%, 0%, 49.4%)
CIE-LABlab(29.22, 14.02, -38.58)
CIE-LCHlch(29.22, 41.05, 289.97°)
OKLaboklab(39.49% -0.0038 -0.1104)
OKLCHoklch(39.49% 0.11 268)
XYZxyz(6.9336, 5.9229, 21.5425)
Luminance0.0592 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4181 #816D2D
analogous
#2D6B81 #2D4181 #432D81
triadic
#2D4181 #812D41 #41812D
tetradic
#2D4181 #812D6B #816D2D #2D8143
square
#2D4181 #812D6B #816D2D #2D8143
split-complementary
#2D4181 #81432D #6B812D
monochromatic
#0D1326 #1D2A54 #2D4181 #3D58AE #6179C8

Accessibility & contrast

On white

9.61
#2D4181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#2D4181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4181
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4181#FFFFFF#000000##FFFFFF
##2D41811.009.612.189.61
#FFFFFF9.611.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204983
Deuteranopia (green-blind)
#104180
Tritanopia (blue-blind)
#00505A
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2d4181;
/* rgb */ color: rgb(45, 65, 129);
/* oklch */ color: oklch(39.5% 0.110 268.0);
Tailwind
colors: {
  custom: {
    50: '#6f75a6',
    500: '#2d4181',
    950: '#000000',
  },
}
SCSS
$custom: #2d4181;
$custom-light: #6f75a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4181",
  "rgb": {
    "r": 45,
    "g": 65,
    "b": 129
  },
  "hsl": {
    "h": 225.714,
    "s": 48.276,
    "l": 34.118
  },
  "oklch": {
    "l": 0.39487,
    "c": 0.11044,
    "h": 268
  },
  "luminance": 0.05923
}

Semantic roles & 50–950 ramp

primary
#2D4181
secondary
#AE9B5C
accent
#B750D8
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2D4181

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

Preview Lab → · Contrast checker → · Palette generator →

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