#2D4498#2D4498

#2D4498 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 41.9% C 0.140 H 268.2°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#2D4498
RGBrgb(45, 68, 152)
HSLhsl(227, 54%, 39%)
HSVhsv(227, 70%, 60%)
CMYKcmyk(70.4%, 55.3%, 0%, 40.4%)
CIE-LABlab(31.71, 20.67, -48.71)
CIE-LCHlch(31.71, 52.91, 292.99°)
OKLaboklab(41.9% -0.0044 -0.1401)
OKLCHoklch(41.9% 0.14 268.2)
XYZxyz(8.8149, 6.9583, 30.5782)
Luminance0.0696 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4498 #98812D
analogous
#2D7998 #2D4498 #4B2D98
triadic
#2D4498 #982D44 #44982D
tetradic
#2D4498 #982D79 #98812D #2D984B
square
#2D4498 #982D79 #98812D #2D984B
split-complementary
#2D4498 #984B2D #79982D
monochromatic
#111A3A #1F2F69 #2D4498 #3D5AC5 #6C82D3

Accessibility & contrast

On white

8.78
#2D4498 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#2D4498 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4498
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4498#FFFFFF#000000##FFFFFF
##2D44981.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02509B
Deuteranopia (green-blind)
#004696
Tritanopia (blue-blind)
#005867
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2d4498;
/* rgb */ color: rgb(45, 68, 152);
/* oklch */ color: oklch(41.9% 0.140 268.2);
Tailwind
colors: {
  custom: {
    50: '#7477b7',
    500: '#2d4498',
    950: '#000000',
  },
}
SCSS
$custom: #2d4498;
$custom-light: #7477b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4498",
  "rgb": {
    "r": 45,
    "g": 68,
    "b": 152
  },
  "hsl": {
    "h": 227.103,
    "s": 54.315,
    "l": 38.627
  },
  "oklch": {
    "l": 0.419,
    "c": 0.14021,
    "h": 268.2
  },
  "luminance": 0.06959
}

Semantic roles & 50–950 ramp

primary
#2D4498
secondary
#BAA866
accent
#BE4ADE
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2D4498

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

Preview Lab → · Contrast checker → · Palette generator →

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