#2D40D0#2D40D0

#2D40D0 is a mid, highly saturated blue. Relative luminance 0.088; OKLCH L 46.2% C 0.219 H 269.1°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#2D40D0
RGBrgb(45, 64, 208)
HSLhsl(233, 64%, 50%)
HSVhsv(233, 78%, 82%)
CMYKcmyk(78.4%, 69.2%, 0%, 18.4%)
CIE-LABlab(35.55, 43.71, -75.63)
CIE-LCHlch(35.55, 87.35, 300.02°)
OKLaboklab(46.22% -0.0032 -0.219)
OKLCHoklch(46.22% 0.219 269.1)
XYZxyz(14.2968, 8.7771, 60.6029)
Luminance0.0878 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D40D0 #D0BD2D
analogous
#2D92D0 #2D40D0 #6B2DD0
triadic
#2D40D0 #D02D40 #40D02D
tetradic
#2D40D0 #D02D92 #D0BD2D #2DD06B
square
#2D40D0 #D02D92 #D0BD2D #2DD06B
split-complementary
#2D40D0 #D06B2D #92D02D
monochromatic
#17216B #22319E #2D40D0 #5E6DDC #909AE7

Accessibility & contrast

On white

7.62
#2D40D0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#2D40D0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D40D0
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D40D0#FFFFFF#000000##FFFFFF
##2D40D01.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD4
Deuteranopia (green-blind)
#004CCD
Tritanopia (blue-blind)
#006883
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2d40d0;
/* rgb */ color: rgb(45, 64, 208);
/* oklch */ color: oklch(46.2% 0.219 269.1);
Tailwind
colors: {
  custom: {
    50: '#8175e0',
    500: '#2d40d0',
    950: '#000000',
  },
}
SCSS
$custom: #2d40d0;
$custom-light: #8175e0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d40d0",
  "rgb": {
    "r": 45,
    "g": 64,
    "b": 208
  },
  "hsl": {
    "h": 233.006,
    "s": 64.427,
    "l": 49.608
  },
  "oklch": {
    "l": 0.46218,
    "c": 0.21907,
    "h": 269.1
  },
  "luminance": 0.08779
}

Semantic roles & 50–950 ramp

primary
#2D40D0
secondary
#D2C987
accent
#D440E7
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #2D40D0

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

Preview Lab → · Contrast checker → · Palette generator →

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