#2C40B8#2C40B8

#2C40B8 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.9% C 0.189 H 269.3°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#2C40B8
RGBrgb(44, 64, 184)
HSLhsl(231, 61%, 45%)
HSVhsv(231, 76%, 72%)
CMYKcmyk(76.1%, 65.2%, 0%, 27.8%)
CIE-LABlab(33.27, 35.09, -65.35)
CIE-LCHlch(33.27, 74.18, 298.23°)
OKLaboklab(43.86% -0.0023 -0.189)
OKLCHoklch(43.86% 0.189 269.3)
XYZxyz(11.5209, 7.6617, 46.2098)
Luminance0.0766 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C40B8 #B8A42C
analogous
#2C86B8 #2C40B8 #5E2CB8
triadic
#2C40B8 #B82C40 #40B82C
tetradic
#2C40B8 #B82C86 #B8A42C #2CB85E
square
#2C40B8 #B82C86 #B8A42C #2CB85E
split-complementary
#2C40B8 #B85E2C #86B82C
monochromatic
#141E55 #202F87 #2C40B8 #4D60D4 #7E8CE0

Accessibility & contrast

On white

8.29
#2C40B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#2C40B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C40B8
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C40B8#FFFFFF#000000##FFFFFF
##2C40B81.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BC
Deuteranopia (green-blind)
#0048B6
Tritanopia (blue-blind)
#006076
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2c40b8;
/* rgb */ color: rgb(44, 64, 184);
/* oklch */ color: oklch(43.9% 0.189 269.3);
Tailwind
colors: {
  custom: {
    50: '#7b75ce',
    500: '#2c40b8',
    950: '#000000',
  },
}
SCSS
$custom: #2c40b8;
$custom-light: #7b75ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2c40b8",
  "rgb": {
    "r": 44,
    "g": 64,
    "b": 184
  },
  "hsl": {
    "h": 231.429,
    "s": 61.404,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43865,
    "c": 0.18906,
    "h": 269.3
  },
  "luminance": 0.07663
}

Semantic roles & 50–950 ramp

primary
#2C40B8
secondary
#C9BD77
accent
#CD43E5
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #2C40B8

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

Preview Lab → · Contrast checker → · Palette generator →

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