#2D418C#2D418C

#2D418C is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.3% C 0.127 H 268.8°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#2D418C
RGBrgb(45, 65, 140)
HSLhsl(227, 51%, 36%)
HSVhsv(227, 68%, 55%)
CMYKcmyk(67.9%, 53.6%, 0%, 45.1%)
CIE-LABlab(29.99, 18.16, -44.15)
CIE-LCHlch(29.99, 47.74, 292.36°)
OKLaboklab(40.32% -0.0026 -0.1268)
OKLCHoklch(40.32% 0.127 268.8)
XYZxyz(7.7045, 6.2312, 25.6026)
Luminance0.0623 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D418C #8C782D
analogous
#2D718C #2D418C #492D8C
triadic
#2D418C #8C2D41 #418C2D
tetradic
#2D418C #8C2D71 #8C782D #2D8C49
square
#2D418C #8C2D71 #8C782D #2D8C49
split-complementary
#2D418C #8C492D #718C2D
monochromatic
#0F162F #1E2B5E #2D418C #3C57BA #667CCE

Accessibility & contrast

On white

9.35
#2D418C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D418C
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D418C#FFFFFF#000000##FFFFFF
##2D418C1.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124B8F
Deuteranopia (green-blind)
#00438A
Tritanopia (blue-blind)
#005360
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2d418c;
/* rgb */ color: rgb(45, 65, 140);
/* oklch */ color: oklch(40.3% 0.127 268.8);
Tailwind
colors: {
  custom: {
    50: '#7175ae',
    500: '#2d418c',
    950: '#000000',
  },
}
SCSS
$custom: #2d418c;
$custom-light: #7175ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2d418c",
  "rgb": {
    "r": 45,
    "g": 65,
    "b": 140
  },
  "hsl": {
    "h": 227.368,
    "s": 51.351,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40319,
    "c": 0.1268,
    "h": 268.8
  },
  "luminance": 0.06232
}

Semantic roles & 50–950 ramp

primary
#2D418C
secondary
#B4A360
accent
#BD4DDB
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2D418C

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

Preview Lab → · Contrast checker → · Palette generator →

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