#2D4198#2D4198

#2D4198 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.3% C 0.144 H 269.3°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#2D4198
RGBrgb(45, 65, 152)
HSLhsl(229, 54%, 39%)
HSVhsv(229, 70%, 60%)
CMYKcmyk(70.4%, 57.2%, 0%, 40.4%)
CIE-LABlab(30.89, 22.69, -50.04)
CIE-LCHlch(30.89, 54.95, 294.39°)
OKLaboklab(41.28% -0.0017 -0.1441)
OKLCHoklch(41.28% 0.144 269.3)
XYZxyz(8.6380, 6.6046, 30.5193)
Luminance0.0660 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4198 #98842D
analogous
#2D7698 #2D4198 #4E2D98
triadic
#2D4198 #982D41 #41982D
tetradic
#2D4198 #982D76 #98842D #2D984E
square
#2D4198 #982D76 #98842D #2D984E
split-complementary
#2D4198 #984E2D #76982D
monochromatic
#11193A #1F2D69 #2D4198 #3D56C5 #6C7FD3

Accessibility & contrast

On white

9.05
#2D4198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#2D4198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4198
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4198#FFFFFF#000000##FFFFFF
##2D41981.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9B
Deuteranopia (green-blind)
#004496
Tritanopia (blue-blind)
#005666
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2d4198;
/* rgb */ color: rgb(45, 65, 152);
/* oklch */ color: oklch(41.3% 0.144 269.3);
Tailwind
colors: {
  custom: {
    50: '#7475b7',
    500: '#2d4198',
    950: '#000000',
  },
}
SCSS
$custom: #2d4198;
$custom-light: #7475b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4198",
  "rgb": {
    "r": 45,
    "g": 65,
    "b": 152
  },
  "hsl": {
    "h": 228.785,
    "s": 54.315,
    "l": 38.627
  },
  "oklch": {
    "l": 0.41283,
    "c": 0.14411,
    "h": 269.3
  },
  "luminance": 0.06605
}

Semantic roles & 50–950 ramp

primary
#2D4198
secondary
#BAAB66
accent
#C24ADE
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2D4198

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

Preview Lab → · Contrast checker → · Palette generator →

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