#2D538A#2D538A

#2D538A is a dark, moderate blue. Relative luminance 0.086; OKLCH L 44.2% C 0.101 H 257.7°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#2D538A
RGBrgb(45, 83, 138)
HSLhsl(215, 51%, 36%)
HSVhsv(215, 67%, 54%)
CMYKcmyk(67.4%, 39.9%, 0%, 45.9%)
CIE-LABlab(35.16, 5.35, -34.64)
CIE-LCHlch(35.16, 35.05, 278.77°)
OKLaboklab(44.25% -0.0214 -0.0985)
OKLCHoklch(44.25% 0.101 257.7)
XYZxyz(8.7612, 8.5785, 25.2339)
Luminance0.0858 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D538A #8A642D
analogous
#2D818A #2D538A #352D8A
triadic
#2D538A #8A2D53 #538A2D
tetradic
#2D538A #8A2D81 #8A642D #2D8A35
square
#2D538A #8A2D81 #8A642D #2D8A35
split-complementary
#2D538A #8A352D #818A2D
monochromatic
#0F1B2E #1E375C #2D538A #3C6FB8 #658FCD

Accessibility & contrast

On white

7.73
#2D538A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#2D538A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D538A
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D538A#FFFFFF#000000##FFFFFF
##2D538A1.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A578C
Deuteranopia (green-blind)
#2D4F89
Tritanopia (blue-blind)
#006068
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2d538a;
/* rgb */ color: rgb(45, 83, 138);
/* oklch */ color: oklch(44.2% 0.101 257.7);
Tailwind
colors: {
  custom: {
    50: '#7083ac',
    500: '#2d538a',
    950: '#000000',
  },
}
SCSS
$custom: #2d538a;
$custom-light: #7083ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2d538a",
  "rgb": {
    "r": 45,
    "g": 83,
    "b": 138
  },
  "hsl": {
    "h": 215.484,
    "s": 50.82,
    "l": 35.882
  },
  "oklch": {
    "l": 0.44245,
    "c": 0.10085,
    "h": 257.7
  },
  "luminance": 0.08579
}

Semantic roles & 50–950 ramp

primary
#2D538A
secondary
#B39160
accent
#A14DDA
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2D538A

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

Preview Lab → · Contrast checker → · Palette generator →

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