#2D4C97#2D4C97

#2D4C97 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 43.5% C 0.128 H 264.7°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#2D4C97
RGBrgb(45, 76, 151)
HSLhsl(222, 54%, 38%)
HSVhsv(222, 70%, 59%)
CMYKcmyk(70.2%, 49.7%, 0%, 40.8%)
CIE-LABlab(33.90, 14.91, -44.57)
CIE-LCHlch(33.90, 47.00, 288.49°)
OKLaboklab(43.54% -0.0118 -0.1278)
OKLCHoklch(43.54% 0.128 264.7)
XYZxyz(9.2506, 7.9602, 30.3211)
Luminance0.0796 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4C97 #97782D
analogous
#2D8197 #2D4C97 #432D97
triadic
#2D4C97 #972D4C #4C972D
tetradic
#2D4C97 #972D81 #97782D #2D9743
square
#2D4C97 #972D81 #97782D #2D9743
split-complementary
#2D4C97 #97432D #81972D
monochromatic
#111D39 #1F3468 #2D4C97 #3C64C5 #6B8AD3

Accessibility & contrast

On white

8.10
#2D4C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#2D4C97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4C97
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4C97#FFFFFF#000000##FFFFFF
##2D4C971.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23559A
Deuteranopia (green-blind)
#044B95
Tritanopia (blue-blind)
#005E6A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2d4c97;
/* rgb */ color: rgb(45, 76, 151);
/* oklch */ color: oklch(43.5% 0.128 264.7);
Tailwind
colors: {
  custom: {
    50: '#737db6',
    500: '#2d4c97',
    950: '#000000',
  },
}
SCSS
$custom: #2d4c97;
$custom-light: #737db6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4c97",
  "rgb": {
    "r": 45,
    "g": 76,
    "b": 151
  },
  "hsl": {
    "h": 222.453,
    "s": 54.082,
    "l": 38.431
  },
  "oklch": {
    "l": 0.43537,
    "c": 0.12837,
    "h": 264.7
  },
  "luminance": 0.07961
}

Semantic roles & 50–950 ramp

primary
#2D4C97
secondary
#BAA166
accent
#B24ADD
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #2D4C97

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

Preview Lab → · Contrast checker → · Palette generator →

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