#2D418E#2D418E

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

Color values

HEX#2D418E
RGBrgb(45, 65, 142)
HSLhsl(228, 52%, 37%)
HSVhsv(228, 68%, 56%)
CMYKcmyk(68.3%, 54.2%, 0%, 44.3%)
CIE-LABlab(30.13, 18.92, -45.15)
CIE-LCHlch(30.13, 48.95, 292.74°)
OKLaboklab(40.48% -0.0024 -0.1297)
OKLCHoklch(40.48% 0.13 269)
XYZxyz(7.8533, 6.2907, 26.3863)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D418E #8E7A2D
analogous
#2D728E #2D418E #4A2D8E
triadic
#2D418E #8E2D41 #418E2D
tetradic
#2D418E #8E2D72 #8E7A2D #2D8E4A
square
#2D418E #8E2D72 #8E7A2D #2D8E4A
split-complementary
#2D418E #8E4A2D #728E2D
monochromatic
#101631 #1E2C60 #2D418E #3C56BC #677CCF

Accessibility & contrast

On white

9.30
#2D418E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D418E
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D418E#FFFFFF#000000##FFFFFF
##2D418E1.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E4C91
Deuteranopia (green-blind)
#00438C
Tritanopia (blue-blind)
#005361
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2d418e;
/* rgb */ color: rgb(45, 65, 142);
/* oklch */ color: oklch(40.5% 0.130 269.0);
Tailwind
colors: {
  custom: {
    50: '#7275b0',
    500: '#2d418e',
    950: '#000000',
  },
}
SCSS
$custom: #2d418e;
$custom-light: #7275b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d418e",
  "rgb": {
    "r": 45,
    "g": 65,
    "b": 142
  },
  "hsl": {
    "h": 227.629,
    "s": 51.872,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40476,
    "c": 0.12972,
    "h": 269
  },
  "luminance": 0.06291
}

Semantic roles & 50–950 ramp

primary
#2D418E
secondary
#B5A461
accent
#BE4CDB
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #2D418E

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

Preview Lab → · Contrast checker → · Palette generator →

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