#2D40A0#2D40A0

#2D40A0 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.8% C 0.157 H 269.7°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#2D40A0
RGBrgb(45, 64, 160)
HSLhsl(230, 56%, 40%)
HSVhsv(230, 72%, 63%)
CMYKcmyk(71.9%, 60%, 0%, 37.3%)
CIE-LABlab(31.26, 26.36, -54.30)
CIE-LCHlch(31.26, 60.36, 295.89°)
OKLaboklab(41.76% -0.0007 -0.1566)
OKLCHoklch(41.76% 0.157 269.7)
XYZxyz(9.2586, 6.7618, 34.0681)
Luminance0.0676 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D40A0 #A08D2D
analogous
#2D79A0 #2D40A0 #532DA0
triadic
#2D40A0 #A02D40 #40A02D
tetradic
#2D40A0 #A02D79 #A08D2D #2DA053
square
#2D40A0 #A02D79 #A08D2D #2DA053
split-complementary
#2D40A0 #A0532D #79A02D
monochromatic
#121A40 #202D70 #2D40A0 #4157C9 #7081D7

Accessibility & contrast

On white

8.93
#2D40A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#2D40A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D40A0
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D40A0#FFFFFF#000000##FFFFFF
##2D40A01.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA3
Deuteranopia (green-blind)
#00449E
Tritanopia (blue-blind)
#005869
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2d40a0;
/* rgb */ color: rgb(45, 64, 160);
/* oklch */ color: oklch(41.8% 0.157 269.7);
Tailwind
colors: {
  custom: {
    50: '#7674bd',
    500: '#2d40a0',
    950: '#000000',
  },
}
SCSS
$custom: #2d40a0;
$custom-light: #7674bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2d40a0",
  "rgb": {
    "r": 45,
    "g": 64,
    "b": 160
  },
  "hsl": {
    "h": 230.087,
    "s": 56.098,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41758,
    "c": 0.15661,
    "h": 269.7
  },
  "luminance": 0.06763
}

Semantic roles & 50–950 ramp

primary
#2D40A0
secondary
#BEB06B
accent
#C648DF
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2D40A0

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

Preview Lab → · Contrast checker → · Palette generator →

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