#2C40B7#2C40B7

#2C40B7 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.8% C 0.188 H 269.3°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#2C40B7
RGBrgb(44, 64, 183)
HSLhsl(231, 61%, 45%)
HSVhsv(231, 76%, 72%)
CMYKcmyk(76%, 65%, 0%, 28.2%)
CIE-LABlab(33.18, 34.72, -64.91)
CIE-LCHlch(33.18, 73.61, 298.14°)
OKLaboklab(43.77% -0.0023 -0.1877)
OKLCHoklch(43.77% 0.188 269.3)
XYZxyz(11.4164, 7.6199, 45.6597)
Luminance0.0762 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C40B7 #B7A32C
analogous
#2C86B7 #2C40B7 #5E2CB7
triadic
#2C40B7 #B72C40 #40B72C
tetradic
#2C40B7 #B72C86 #B7A32C #2CB75E
square
#2C40B7 #B72C86 #B7A32C #2CB75E
split-complementary
#2C40B7 #B75E2C #86B72C
monochromatic
#141D54 #202F86 #2C40B7 #4C60D4 #7E8CE0

Accessibility & contrast

On white

8.32
#2C40B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#2C40B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C40B7
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C40B7#FFFFFF#000000##FFFFFF
##2C40B71.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BB
Deuteranopia (green-blind)
#0048B5
Tritanopia (blue-blind)
#005F75
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2c40b7;
/* rgb */ color: rgb(44, 64, 183);
/* oklch */ color: oklch(43.8% 0.188 269.3);
Tailwind
colors: {
  custom: {
    50: '#7b75ce',
    500: '#2c40b7',
    950: '#000000',
  },
}
SCSS
$custom: #2c40b7;
$custom-light: #7b75ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2c40b7",
  "rgb": {
    "r": 44,
    "g": 64,
    "b": 183
  },
  "hsl": {
    "h": 231.367,
    "s": 61.233,
    "l": 44.51
  },
  "oklch": {
    "l": 0.43772,
    "c": 0.18776,
    "h": 269.3
  },
  "luminance": 0.07621
}

Semantic roles & 50–950 ramp

primary
#2C40B7
secondary
#C8BD76
accent
#CD43E4
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #2C40B7

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

Preview Lab → · Contrast checker → · Palette generator →

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