#2D4297#2D4297

#2D4297 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.4% C 0.141 H 268.9°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#2D4297
RGBrgb(45, 66, 151)
HSLhsl(228, 54%, 38%)
HSVhsv(228, 70%, 59%)
CMYKcmyk(70.2%, 56.3%, 0%, 40.8%)
CIE-LABlab(31.09, 21.64, -49.12)
CIE-LCHlch(31.09, 53.67, 293.78°)
OKLaboklab(41.4% -0.0027 -0.1414)
OKLCHoklch(41.4% 0.141 268.9)
XYZxyz(8.6144, 6.6878, 30.1091)
Luminance0.0669 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4297 #97822D
analogous
#2D7797 #2D4297 #4D2D97
triadic
#2D4297 #972D42 #42972D
tetradic
#2D4297 #972D77 #97822D #2D974D
square
#2D4297 #972D77 #97822D #2D974D
split-complementary
#2D4297 #974D2D #77972D
monochromatic
#111939 #1F2D68 #2D4297 #3C57C5 #6B80D3

Accessibility & contrast

On white

8.98
#2D4297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#2D4297 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4297
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4297#FFFFFF#000000##FFFFFF
##2D42971.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9A
Deuteranopia (green-blind)
#004595
Tritanopia (blue-blind)
#005766
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2d4297;
/* rgb */ color: rgb(45, 66, 151);
/* oklch */ color: oklch(41.4% 0.141 268.9);
Tailwind
colors: {
  custom: {
    50: '#7476b6',
    500: '#2d4297',
    950: '#000000',
  },
}
SCSS
$custom: #2d4297;
$custom-light: #7476b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4297",
  "rgb": {
    "r": 45,
    "g": 66,
    "b": 151
  },
  "hsl": {
    "h": 228.113,
    "s": 54.082,
    "l": 38.431
  },
  "oklch": {
    "l": 0.41405,
    "c": 0.14139,
    "h": 268.9
  },
  "luminance": 0.06689
}

Semantic roles & 50–950 ramp

primary
#2D4297
secondary
#BAA966
accent
#C04ADD
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2D4297

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

Preview Lab → · Contrast checker → · Palette generator →

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