#2D5097#2D5097

#2D5097 is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.4% C 0.123 H 262.7°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#2D5097
RGBrgb(45, 80, 151)
HSLhsl(220, 54%, 38%)
HSVhsv(220, 70%, 59%)
CMYKcmyk(70.2%, 47%, 0%, 40.8%)
CIE-LABlab(35.06, 12.24, -42.71)
CIE-LCHlch(35.06, 44.42, 285.99°)
OKLaboklab(44.43% -0.0157 -0.1223)
OKLCHoklch(44.43% 0.123 262.7)
XYZxyz(9.5348, 8.5286, 30.4158)
Luminance0.0853 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5097 #97742D
analogous
#2D8597 #2D5097 #3F2D97
triadic
#2D5097 #972D50 #50972D
tetradic
#2D5097 #972D85 #97742D #2D973F
square
#2D5097 #972D85 #97742D #2D973F
split-complementary
#2D5097 #973F2D #85972D
monochromatic
#111E39 #1F3768 #2D5097 #3C69C5 #6B8ED3

Accessibility & contrast

On white

7.76
#2D5097 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#2D5097 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5097
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5097#FFFFFF#000000##FFFFFF
##2D50971.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C589A
Deuteranopia (green-blind)
#164E96
Tritanopia (blue-blind)
#00616C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2d5097;
/* rgb */ color: rgb(45, 80, 151);
/* oklch */ color: oklch(44.4% 0.123 262.7);
Tailwind
colors: {
  custom: {
    50: '#7380b6',
    500: '#2d5097',
    950: '#000000',
  },
}
SCSS
$custom: #2d5097;
$custom-light: #7380b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5097",
  "rgb": {
    "r": 45,
    "g": 80,
    "b": 151
  },
  "hsl": {
    "h": 220.189,
    "s": 54.082,
    "l": 38.431
  },
  "oklch": {
    "l": 0.44426,
    "c": 0.12327,
    "h": 262.7
  },
  "luminance": 0.0853
}

Semantic roles & 50–950 ramp

primary
#2D5097
secondary
#BA9E66
accent
#AD4ADD
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2D5097

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

Preview Lab → · Contrast checker → · Palette generator →

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