#2D3498#2D3498

#2D3498 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.8% C 0.161 H 273.1°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#2D3498
RGBrgb(45, 52, 152)
HSLhsl(236, 54%, 39%)
HSVhsv(236, 70%, 60%)
CMYKcmyk(70.4%, 65.8%, 0%, 40.4%)
CIE-LABlab(27.52, 31.32, -55.54)
CIE-LCHlch(27.52, 63.76, 299.42°)
OKLaboklab(38.79% 0.0087 -0.1604)
OKLCHoklch(38.79% 0.161 273.1)
XYZxyz(7.9758, 5.2801, 30.2985)
Luminance0.0528 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3498 #98912D
analogous
#2D6998 #2D3498 #5B2D98
triadic
#2D3498 #982D34 #34982D
tetradic
#2D3498 #982D69 #98912D #2D985B
square
#2D3498 #982D69 #98912D #2D985B
split-complementary
#2D3498 #985B2D #69982D
monochromatic
#11143A #1F2469 #2D3498 #3D46C5 #6C73D3

Accessibility & contrast

On white

10.21
#2D3498 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#2D3498 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3498
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3498#FFFFFF#000000##FFFFFF
##2D34981.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469B
Deuteranopia (green-blind)
#003C96
Tritanopia (blue-blind)
#004E61
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2d3498;
/* rgb */ color: rgb(45, 52, 152);
/* oklch */ color: oklch(38.8% 0.161 273.1);
Tailwind
colors: {
  custom: {
    50: '#756bb7',
    500: '#2d3498',
    950: '#000000',
  },
}
SCSS
$custom: #2d3498;
$custom-light: #756bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3498",
  "rgb": {
    "r": 45,
    "g": 52,
    "b": 152
  },
  "hsl": {
    "h": 236.075,
    "s": 54.315,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38786,
    "c": 0.16061,
    "h": 273.1
  },
  "luminance": 0.05281
}

Semantic roles & 50–950 ramp

primary
#2D3498
secondary
#BAB566
accent
#D44ADE
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2D3498

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

Preview Lab → · Contrast checker → · Palette generator →

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