#2D4EA1#2D4EA1

#2D4EA1 is a dark, vivid blue. Relative luminance 0.086; OKLCH L 44.7% C 0.140 H 264.9°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#2D4EA1
RGBrgb(45, 78, 161)
HSLhsl(223, 56%, 40%)
HSVhsv(223, 72%, 63%)
CMYKcmyk(72%, 51.6%, 0%, 36.9%)
CIE-LABlab(35.16, 17.38, -48.57)
CIE-LCHlch(35.16, 51.59, 289.68°)
OKLaboklab(44.72% -0.0124 -0.1396)
OKLCHoklch(44.72% 0.14 264.9)
XYZxyz(10.2373, 8.5788, 34.8277)
Luminance0.0858 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4EA1 #A1802D
analogous
#2D88A1 #2D4EA1 #462DA1
triadic
#2D4EA1 #A12D4E #4EA12D
tetradic
#2D4EA1 #A12D88 #A1802D #2DA146
square
#2D4EA1 #A12D88 #A1802D #2DA146
split-complementary
#2D4EA1 #A1462D #88A12D
monochromatic
#122041 #203771 #2D4EA1 #4168CA #718ED7

Accessibility & contrast

On white

7.73
#2D4EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#2D4EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4EA1
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4EA1#FFFFFF#000000##FFFFFF
##2D4EA11.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B58A4
Deuteranopia (green-blind)
#004E9F
Tritanopia (blue-blind)
#006270
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2d4ea1;
/* rgb */ color: rgb(45, 78, 161);
/* oklch */ color: oklch(44.7% 0.140 264.9);
Tailwind
colors: {
  custom: {
    50: '#757fbd',
    500: '#2d4ea1',
    950: '#000000',
  },
}
SCSS
$custom: #2d4ea1;
$custom-light: #757fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4ea1",
  "rgb": {
    "r": 45,
    "g": 78,
    "b": 161
  },
  "hsl": {
    "h": 222.931,
    "s": 56.311,
    "l": 40.392
  },
  "oklch": {
    "l": 0.44718,
    "c": 0.14011,
    "h": 264.9
  },
  "luminance": 0.0858
}

Semantic roles & 50–950 ramp

primary
#2D4EA1
secondary
#BFA76B
accent
#B548E0
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2D4EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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