#2C40CF#2C40CF

#2C40CF is a mid, highly saturated blue. Relative luminance 0.087; OKLCH L 46.1% C 0.218 H 268.9°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#2C40CF
RGBrgb(44, 64, 207)
HSLhsl(233, 65%, 49%)
HSVhsv(233, 79%, 81%)
CMYKcmyk(78.7%, 69.1%, 0%, 18.8%)
CIE-LABlab(35.41, 43.28, -75.29)
CIE-LCHlch(35.41, 86.84, 299.89°)
OKLaboklab(46.08% -0.0041 -0.2181)
OKLCHoklch(46.08% 0.218 268.9)
XYZxyz(14.1307, 8.7056, 59.9550)
Luminance0.0871 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C40CF #CFBB2C
analogous
#2C92CF #2C40CF #6A2CCF
triadic
#2C40CF #CF2C40 #40CF2C
tetradic
#2C40CF #CF2C92 #CFBB2C #2CCF6A
square
#2C40CF #CF2C92 #CFBB2C #2CCF6A
split-complementary
#2C40CF #CF6A2C #92CF2C
monochromatic
#17216A #21309D #2C40CF #5C6CDC #8E99E7

Accessibility & contrast

On white

7.66
#2C40CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#2C40CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C40CF
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C40CF#FFFFFF#000000##FFFFFF
##2C40CF1.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD3
Deuteranopia (green-blind)
#004BCC
Tritanopia (blue-blind)
#006883
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2c40cf;
/* rgb */ color: rgb(44, 64, 207);
/* oklch */ color: oklch(46.1% 0.218 268.9);
Tailwind
colors: {
  custom: {
    50: '#8175df',
    500: '#2c40cf',
    950: '#000000',
  },
}
SCSS
$custom: #2c40cf;
$custom-light: #8175df;
$custom-dark: #000000;
JSON
{
  "hex": "#2c40cf",
  "rgb": {
    "r": 44,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 232.638,
    "s": 64.94,
    "l": 49.216
  },
  "oklch": {
    "l": 0.46076,
    "c": 0.2181,
    "h": 268.9
  },
  "luminance": 0.08707
}

Semantic roles & 50–950 ramp

primary
#2C40CF
secondary
#D1C885
accent
#D340E8
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #2C40CF

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

Preview Lab → · Contrast checker → · Palette generator →

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