#2D4098#2D4098

#2D4098 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.1% C 0.145 H 269.6°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#2D4098
RGBrgb(45, 64, 152)
HSLhsl(229, 54%, 39%)
HSVhsv(229, 70%, 60%)
CMYKcmyk(70.4%, 57.9%, 0%, 40.4%)
CIE-LABlab(30.62, 23.36, -50.48)
CIE-LCHlch(30.62, 55.63, 294.83°)
OKLaboklab(41.08% -0.0009 -0.1454)
OKLCHoklch(41.08% 0.145 269.6)
XYZxyz(8.5811, 6.4908, 30.5003)
Luminance0.0649 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4098 #98852D
analogous
#2D7598 #2D4098 #4F2D98
triadic
#2D4098 #982D40 #40982D
tetradic
#2D4098 #982D75 #98852D #2D984F
square
#2D4098 #982D75 #98852D #2D984F
split-complementary
#2D4098 #984F2D #75982D
monochromatic
#11183A #1F2C69 #2D4098 #3D55C5 #6C7ED3

Accessibility & contrast

On white

9.14
#2D4098 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#2D4098 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4098
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4098#FFFFFF#000000##FFFFFF
##2D40981.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9B
Deuteranopia (green-blind)
#004396
Tritanopia (blue-blind)
#005665
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2d4098;
/* rgb */ color: rgb(45, 64, 152);
/* oklch */ color: oklch(41.1% 0.145 269.6);
Tailwind
colors: {
  custom: {
    50: '#7474b7',
    500: '#2d4098',
    950: '#000000',
  },
}
SCSS
$custom: #2d4098;
$custom-light: #7474b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4098",
  "rgb": {
    "r": 45,
    "g": 64,
    "b": 152
  },
  "hsl": {
    "h": 229.346,
    "s": 54.315,
    "l": 38.627
  },
  "oklch": {
    "l": 0.4108,
    "c": 0.14541,
    "h": 269.6
  },
  "luminance": 0.06492
}

Semantic roles & 50–950 ramp

primary
#2D4098
secondary
#BAAC66
accent
#C34ADE
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2D4098

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

Preview Lab → · Contrast checker → · Palette generator →

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