#2D4287#2D4287

#2D4287 is a dark, moderate blue. Relative luminance 0.062; OKLCH L 40.2% C 0.118 H 268.0°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#2D4287
RGBrgb(45, 66, 135)
HSLhsl(226, 50%, 35%)
HSVhsv(226, 67%, 53%)
CMYKcmyk(66.7%, 51.1%, 0%, 47.1%)
CIE-LABlab(29.92, 15.60, -41.18)
CIE-LCHlch(29.92, 44.03, 290.74°)
OKLaboklab(40.15% -0.0041 -0.118)
OKLCHoklch(40.15% 0.118 268)
XYZxyz(7.4021, 6.2029, 23.7242)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4287 #87722D
analogous
#2D6F87 #2D4287 #452D87
triadic
#2D4287 #872D42 #42872D
tetradic
#2D4287 #872D6F #87722D #2D8745
square
#2D4287 #872D6F #87722D #2D8745
split-complementary
#2D4287 #87452D #6F872D
monochromatic
#0E152B #1E2C59 #2D4287 #3C58B5 #637CCB

Accessibility & contrast

On white

9.37
#2D4287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#2D4287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4287
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4287#FFFFFF#000000##FFFFFF
##2D42871.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4B8A
Deuteranopia (green-blind)
#044386
Tritanopia (blue-blind)
#00525E
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2d4287;
/* rgb */ color: rgb(45, 66, 135);
/* oklch */ color: oklch(40.2% 0.118 268.0);
Tailwind
colors: {
  custom: {
    50: '#7076aa',
    500: '#2d4287',
    950: '#000000',
  },
}
SCSS
$custom: #2d4287;
$custom-light: #7076aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4287",
  "rgb": {
    "r": 45,
    "g": 66,
    "b": 135
  },
  "hsl": {
    "h": 226,
    "s": 50,
    "l": 35.294
  },
  "oklch": {
    "l": 0.40153,
    "c": 0.11807,
    "h": 268
  },
  "luminance": 0.06204
}

Semantic roles & 50–950 ramp

primary
#2D4287
secondary
#B29E5E
accent
#B94EDA
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2D4287

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

Preview Lab → · Contrast checker → · Palette generator →

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