#2D4286#2D4286

#2D4286 is a dark, moderate blue. Relative luminance 0.062; OKLCH L 40.1% C 0.117 H 267.9°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#2D4286
RGBrgb(45, 66, 134)
HSLhsl(226, 50%, 35%)
HSVhsv(226, 66%, 53%)
CMYKcmyk(66.4%, 50.7%, 0%, 47.5%)
CIE-LABlab(29.85, 15.22, -40.67)
CIE-LCHlch(29.85, 43.42, 290.52°)
OKLaboklab(40.08% -0.0042 -0.1165)
OKLCHoklch(40.08% 0.117 267.9)
XYZxyz(7.3320, 6.1749, 23.3551)
Luminance0.0618 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4286 #86712D
analogous
#2D6E86 #2D4286 #452D86
triadic
#2D4286 #862D42 #42862D
tetradic
#2D4286 #862D6E #86712D #2D8645
square
#2D4286 #862D6E #86712D #2D8645
split-complementary
#2D4286 #86452D #6E862D
monochromatic
#0E152A #1E2B58 #2D4286 #3C59B4 #637BCB

Accessibility & contrast

On white

9.40
#2D4286 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D4286
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4286#FFFFFF#000000##FFFFFF
##2D42861.009.402.249.40
#FFFFFF9.401.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4B88
Deuteranopia (green-blind)
#074285
Tritanopia (blue-blind)
#00525D
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2d4286;
/* rgb */ color: rgb(45, 66, 134);
/* oklch */ color: oklch(40.1% 0.117 267.9);
Tailwind
colors: {
  custom: {
    50: '#7076aa',
    500: '#2d4286',
    950: '#000000',
  },
}
SCSS
$custom: #2d4286;
$custom-light: #7076aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4286",
  "rgb": {
    "r": 45,
    "g": 66,
    "b": 134
  },
  "hsl": {
    "h": 225.843,
    "s": 49.721,
    "l": 35.098
  },
  "oklch": {
    "l": 0.40078,
    "c": 0.11659,
    "h": 267.9
  },
  "luminance": 0.06176
}

Semantic roles & 50–950 ramp

primary
#2D4286
secondary
#B19D5E
accent
#B94FD9
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2D4286

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

Preview Lab → · Contrast checker → · Palette generator →

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