#2D40B2#2D40B2

#2D40B2 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.4% C 0.181 H 269.7°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#2D40B2
RGBrgb(45, 64, 178)
HSLhsl(231, 60%, 44%)
HSVhsv(231, 75%, 70%)
CMYKcmyk(74.7%, 64%, 0%, 30.2%)
CIE-LABlab(32.78, 33.01, -62.59)
CIE-LCHlch(32.78, 70.76, 297.81°)
OKLaboklab(43.36% -0.0011 -0.1809)
OKLCHoklch(43.36% 0.181 269.7)
XYZxyz(10.9487, 7.4379, 42.9695)
Luminance0.0744 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D40B2 #B29F2D
analogous
#2D82B2 #2D40B2 #5C2DB2
triadic
#2D40B2 #B22D40 #40B22D
tetradic
#2D40B2 #B22D82 #B29F2D #2DB25C
square
#2D40B2 #B22D82 #B29F2D #2DB25C
split-complementary
#2D40B2 #B25C2D #82B22D
monochromatic
#141D50 #212E81 #2D40B2 #4B5ED1 #7C8ADE

Accessibility & contrast

On white

8.44
#2D40B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#2D40B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D40B2
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D40B2#FFFFFF#000000##FFFFFF
##2D40B21.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B6
Deuteranopia (green-blind)
#0047B0
Tritanopia (blue-blind)
#005E73
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2d40b2;
/* rgb */ color: rgb(45, 64, 178);
/* oklch */ color: oklch(43.4% 0.181 269.7);
Tailwind
colors: {
  custom: {
    50: '#7a74ca',
    500: '#2d40b2',
    950: '#000000',
  },
}
SCSS
$custom: #2d40b2;
$custom-light: #7a74ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2d40b2",
  "rgb": {
    "r": 45,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 231.429,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.43359,
    "c": 0.18094,
    "h": 269.7
  },
  "luminance": 0.07439
}

Semantic roles & 50–950 ramp

primary
#2D40B2
secondary
#C6BB75
accent
#CC45E3
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #2D40B2

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

Preview Lab → · Contrast checker → · Palette generator →

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