#2D418B#2D418B

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

Color values

HEX#2D418B
RGBrgb(45, 65, 139)
HSLhsl(227, 51%, 36%)
HSVhsv(227, 68%, 55%)
CMYKcmyk(67.6%, 53.2%, 0%, 45.5%)
CIE-LABlab(29.92, 17.79, -43.65)
CIE-LCHlch(29.92, 47.14, 292.17°)
OKLaboklab(40.24% -0.0026 -0.1253)
OKLCHoklch(40.24% 0.125 268.8)
XYZxyz(7.6311, 6.2019, 25.2160)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D418B #8B772D
analogous
#2D708B #2D418B #482D8B
triadic
#2D418B #8B2D41 #418B2D
tetradic
#2D418B #8B2D70 #8B772D #2D8B48
square
#2D418B #8B2D70 #8B772D #2D8B48
split-complementary
#2D418B #8B482D #708B2D
monochromatic
#0F162F #1E2B5D #2D418B #3C57B9 #657BCD

Accessibility & contrast

On white

9.37
#2D418B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#2D418B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D418B
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D418B#FFFFFF#000000##FFFFFF
##2D418B1.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134B8E
Deuteranopia (green-blind)
#004289
Tritanopia (blue-blind)
#00525F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2d418b;
/* rgb */ color: rgb(45, 65, 139);
/* oklch */ color: oklch(40.2% 0.125 268.8);
Tailwind
colors: {
  custom: {
    50: '#7175ad',
    500: '#2d418b',
    950: '#000000',
  },
}
SCSS
$custom: #2d418b;
$custom-light: #7175ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2d418b",
  "rgb": {
    "r": 45,
    "g": 65,
    "b": 139
  },
  "hsl": {
    "h": 227.234,
    "s": 51.087,
    "l": 36.078
  },
  "oklch": {
    "l": 0.40241,
    "c": 0.12533,
    "h": 268.8
  },
  "luminance": 0.06203
}

Semantic roles & 50–950 ramp

primary
#2D418B
secondary
#B4A260
accent
#BC4DDB
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2D418B

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

Preview Lab → · Contrast checker → · Palette generator →

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