#2D418F#2D418F

#2D418F is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.6% C 0.131 H 269.0°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#2D418F
RGBrgb(45, 65, 143)
HSLhsl(228, 52%, 37%)
HSVhsv(228, 69%, 56%)
CMYKcmyk(68.5%, 54.5%, 0%, 43.9%)
CIE-LABlab(30.21, 19.30, -45.64)
CIE-LCHlch(30.21, 49.56, 292.92°)
OKLaboklab(40.56% -0.0023 -0.1312)
OKLCHoklch(40.56% 0.131 269)
XYZxyz(7.9287, 6.3209, 26.7835)
Luminance0.0632 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D418F #8F7B2D
analogous
#2D728F #2D418F #4A2D8F
triadic
#2D418F #8F2D41 #418F2D
tetradic
#2D418F #8F2D72 #8F7B2D #2D8F4A
square
#2D418F #8F2D72 #8F7B2D #2D8F4A
split-complementary
#2D418F #8F4A2D #728F2D
monochromatic
#101732 #1E2C60 #2D418F #3C56BE #677CCF

Accessibility & contrast

On white

9.27
#2D418F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#2D418F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D418F
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D418F#FFFFFF#000000##FFFFFF
##2D418F1.009.272.269.27
#FFFFFF9.271.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B4C92
Deuteranopia (green-blind)
#00438D
Tritanopia (blue-blind)
#005461
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2d418f;
/* rgb */ color: rgb(45, 65, 143);
/* oklch */ color: oklch(40.6% 0.131 269.0);
Tailwind
colors: {
  custom: {
    50: '#7275b0',
    500: '#2d418f',
    950: '#000000',
  },
}
SCSS
$custom: #2d418f;
$custom-light: #7275b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d418f",
  "rgb": {
    "r": 45,
    "g": 65,
    "b": 143
  },
  "hsl": {
    "h": 227.755,
    "s": 52.128,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40555,
    "c": 0.13118,
    "h": 269
  },
  "luminance": 0.06322
}

Semantic roles & 50–950 ramp

primary
#2D418F
secondary
#B6A562
accent
#BE4CDC
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2D418F

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

Preview Lab → · Contrast checker → · Palette generator →

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