#2D4097#2D4097

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

Color values

HEX#2D4097
RGBrgb(45, 64, 151)
HSLhsl(229, 54%, 38%)
HSVhsv(229, 70%, 59%)
CMYKcmyk(70.2%, 57.6%, 0%, 40.8%)
CIE-LABlab(30.54, 22.99, -50.00)
CIE-LCHlch(30.54, 55.03, 294.69°)
OKLaboklab(41% -0.0009 -0.144)
OKLCHoklch(41% 0.144 269.6)
XYZxyz(8.4996, 6.4582, 30.0708)
Luminance0.0646 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4097 #97842D
analogous
#2D7597 #2D4097 #4F2D97
triadic
#2D4097 #972D40 #40972D
tetradic
#2D4097 #972D75 #97842D #2D974F
square
#2D4097 #972D75 #97842D #2D974F
split-complementary
#2D4097 #974F2D #75972D
monochromatic
#111839 #1F2C68 #2D4097 #3C55C5 #6B7ED3

Accessibility & contrast

On white

9.16
#2D4097 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#2D4097 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4097
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4097#FFFFFF#000000##FFFFFF
##2D40971.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9A
Deuteranopia (green-blind)
#004395
Tritanopia (blue-blind)
#005565
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2d4097;
/* rgb */ color: rgb(45, 64, 151);
/* oklch */ color: oklch(41.0% 0.144 269.6);
Tailwind
colors: {
  custom: {
    50: '#7474b6',
    500: '#2d4097',
    950: '#000000',
  },
}
SCSS
$custom: #2d4097;
$custom-light: #7474b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4097",
  "rgb": {
    "r": 45,
    "g": 64,
    "b": 151
  },
  "hsl": {
    "h": 229.245,
    "s": 54.082,
    "l": 38.431
  },
  "oklch": {
    "l": 0.40997,
    "c": 0.14399,
    "h": 269.6
  },
  "luminance": 0.06459
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D4097

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

Preview Lab → · Contrast checker → · Palette generator →

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