#2D40C9#2D40C9

#2D40C9 is a mid, highly saturated blue. Relative luminance 0.084; OKLCH L 45.5% C 0.210 H 269.3°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#2D40C9
RGBrgb(45, 64, 201)
HSLhsl(233, 63%, 48%)
HSVhsv(233, 78%, 79%)
CMYKcmyk(77.6%, 68.2%, 0%, 21.2%)
CIE-LABlab(34.88, 41.26, -72.67)
CIE-LCHlch(34.88, 83.57, 299.59°)
OKLaboklab(45.53% -0.0026 -0.2104)
OKLCHoklch(45.53% 0.21 269.3)
XYZxyz(13.4546, 8.4402, 56.1670)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D40C9 #C9B62D
analogous
#2D8EC9 #2D40C9 #682DC9
triadic
#2D40C9 #C92D40 #40C92D
tetradic
#2D40C9 #C92D8E #C9B62D #2DC968
square
#2D40C9 #C92D8E #C9B62D #2DC968
split-complementary
#2D40C9 #C9682D #8EC92D
monochromatic
#172065 #223097 #2D40C9 #5969DA #8B96E5

Accessibility & contrast

On white

7.81
#2D40C9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#2D40C9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D40C9
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D40C9#FFFFFF#000000##FFFFFF
##2D40C91.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACD
Deuteranopia (green-blind)
#004BC6
Tritanopia (blue-blind)
#00667F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2d40c9;
/* rgb */ color: rgb(45, 64, 201);
/* oklch */ color: oklch(45.5% 0.210 269.3);
Tailwind
colors: {
  custom: {
    50: '#8075db',
    500: '#2d40c9',
    950: '#000000',
  },
}
SCSS
$custom: #2d40c9;
$custom-light: #8075db;
$custom-dark: #000000;
JSON
{
  "hex": "#2d40c9",
  "rgb": {
    "r": 45,
    "g": 64,
    "b": 201
  },
  "hsl": {
    "h": 232.692,
    "s": 63.415,
    "l": 48.235
  },
  "oklch": {
    "l": 0.45533,
    "c": 0.21043,
    "h": 269.3
  },
  "luminance": 0.08442
}

Semantic roles & 50–950 ramp

primary
#2D40C9
secondary
#CFC683
accent
#D241E6
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #2D40C9

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

Preview Lab → · Contrast checker → · Palette generator →

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