#2D40A2#2D40A2

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

Color values

HEX#2D40A2
RGBrgb(45, 64, 162)
HSLhsl(230, 57%, 41%)
HSVhsv(230, 72%, 64%)
CMYKcmyk(72.2%, 60.5%, 0%, 36.5%)
CIE-LABlab(31.42, 27.10, -55.24)
CIE-LCHlch(31.42, 61.53, 296.14°)
OKLaboklab(41.93% -0.0007 -0.1594)
OKLCHoklch(41.93% 0.159 269.7)
XYZxyz(9.4349, 6.8324, 34.9970)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D40A2 #A28F2D
analogous
#2D7BA2 #2D40A2 #542DA2
triadic
#2D40A2 #A22D40 #40A22D
tetradic
#2D40A2 #A22D7B #A28F2D #2DA254
square
#2D40A2 #A22D7B #A28F2D #2DA254
split-complementary
#2D40A2 #A2542D #7BA22D
monochromatic
#121A42 #202D72 #2D40A2 #4258CA #7282D8

Accessibility & contrast

On white

8.87
#2D40A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#2D40A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D40A2
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D40A2#FFFFFF#000000##FFFFFF
##2D40A21.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA5
Deuteranopia (green-blind)
#0045A0
Tritanopia (blue-blind)
#00596A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2d40a2;
/* rgb */ color: rgb(45, 64, 162);
/* oklch */ color: oklch(41.9% 0.159 269.7);
Tailwind
colors: {
  custom: {
    50: '#7674be',
    500: '#2d40a2',
    950: '#000000',
  },
}
SCSS
$custom: #2d40a2;
$custom-light: #7674be;
$custom-dark: #000000;
JSON
{
  "hex": "#2d40a2",
  "rgb": {
    "r": 45,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 230.256,
    "s": 56.522,
    "l": 40.588
  },
  "oklch": {
    "l": 0.41931,
    "c": 0.15937,
    "h": 269.7
  },
  "luminance": 0.06833
}

Semantic roles & 50–950 ramp

primary
#2D40A2
secondary
#BFB26C
accent
#C748E0
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2D40A2

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

Preview Lab → · Contrast checker → · Palette generator →

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