#2D4598#2D4598

#2D4598 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.1% C 0.139 H 267.8°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#2D4598
RGBrgb(45, 69, 152)
HSLhsl(227, 54%, 39%)
HSVhsv(227, 70%, 60%)
CMYKcmyk(70.4%, 54.6%, 0%, 40.4%)
CIE-LABlab(31.99, 19.99, -48.26)
CIE-LCHlch(31.99, 52.24, 292.50°)
OKLaboklab(42.11% -0.0053 -0.1388)
OKLCHoklch(42.11% 0.139 267.8)
XYZxyz(8.8758, 7.0803, 30.5985)
Luminance0.0708 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4598 #98802D
analogous
#2D7A98 #2D4598 #4A2D98
triadic
#2D4598 #982D45 #45982D
tetradic
#2D4598 #982D7A #98802D #2D984A
square
#2D4598 #982D7A #98802D #2D984A
split-complementary
#2D4598 #984A2D #7A982D
monochromatic
#111A3A #1F3069 #2D4598 #3D5BC5 #6C83D3

Accessibility & contrast

On white

8.69
#2D4598 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#2D4598 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4598
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4598#FFFFFF#000000##FFFFFF
##2D45981.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08509B
Deuteranopia (green-blind)
#004796
Tritanopia (blue-blind)
#005967
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2d4598;
/* rgb */ color: rgb(45, 69, 152);
/* oklch */ color: oklch(42.1% 0.139 267.8);
Tailwind
colors: {
  custom: {
    50: '#7478b7',
    500: '#2d4598',
    950: '#000000',
  },
}
SCSS
$custom: #2d4598;
$custom-light: #7478b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4598",
  "rgb": {
    "r": 45,
    "g": 69,
    "b": 152
  },
  "hsl": {
    "h": 226.542,
    "s": 54.315,
    "l": 38.627
  },
  "oklch": {
    "l": 0.42109,
    "c": 0.1389,
    "h": 267.8
  },
  "luminance": 0.07081
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D4598

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

Preview Lab → · Contrast checker → · Palette generator →

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