#2D418D#2D418D

#2D418D is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.4% C 0.128 H 268.9°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#2D418D
RGBrgb(45, 65, 141)
HSLhsl(228, 52%, 36%)
HSVhsv(228, 68%, 55%)
CMYKcmyk(68.1%, 53.9%, 0%, 44.7%)
CIE-LABlab(30.06, 18.54, -44.65)
CIE-LCHlch(30.06, 48.35, 292.55°)
OKLaboklab(40.4% -0.0025 -0.1282)
OKLCHoklch(40.4% 0.128 268.9)
XYZxyz(7.7786, 6.2608, 25.9927)
Luminance0.0626 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D418D #8D792D
analogous
#2D718D #2D418D #492D8D
triadic
#2D418D #8D2D41 #418D2D
tetradic
#2D418D #8D2D71 #8D792D #2D8D49
square
#2D418D #8D2D71 #8D792D #2D8D49
split-complementary
#2D418D #8D492D #718D2D
monochromatic
#0F1630 #1E2C5F #2D418D #3C56BB #667CCE

Accessibility & contrast

On white

9.32
#2D418D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#2D418D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D418D
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D418D#FFFFFF#000000##FFFFFF
##2D418D1.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#104B90
Deuteranopia (green-blind)
#00438B
Tritanopia (blue-blind)
#005360
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2d418d;
/* rgb */ color: rgb(45, 65, 141);
/* oklch */ color: oklch(40.4% 0.128 268.9);
Tailwind
colors: {
  custom: {
    50: '#7275af',
    500: '#2d418d',
    950: '#000000',
  },
}
SCSS
$custom: #2d418d;
$custom-light: #7275af;
$custom-dark: #000000;
JSON
{
  "hex": "#2d418d",
  "rgb": {
    "r": 45,
    "g": 65,
    "b": 141
  },
  "hsl": {
    "h": 227.5,
    "s": 51.613,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40397,
    "c": 0.12826,
    "h": 268.9
  },
  "luminance": 0.06262
}

Semantic roles & 50–950 ramp

primary
#2D418D
secondary
#B5A361
accent
#BD4DDB
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #2D418D

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

Preview Lab → · Contrast checker → · Palette generator →

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