#2C40B0#2C40B0

#2C40B0 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.1% C 0.179 H 269.4°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#2C40B0
RGBrgb(44, 64, 176)
HSLhsl(231, 60%, 43%)
HSVhsv(231, 75%, 69%)
CMYKcmyk(75%, 63.6%, 0%, 31%)
CIE-LABlab(32.56, 32.16, -61.77)
CIE-LCHlch(32.56, 69.64, 297.51°)
OKLaboklab(43.13% -0.002 -0.1786)
OKLCHoklch(43.13% 0.179 269.4)
XYZxyz(10.7059, 7.3357, 41.9176)
Luminance0.0734 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C40B0 #B09C2C
analogous
#2C82B0 #2C40B0 #5A2CB0
triadic
#2C40B0 #B02C40 #40B02C
tetradic
#2C40B0 #B02C82 #B09C2C #2CB05A
square
#2C40B0 #B02C82 #B09C2C #2CB05A
split-complementary
#2C40B0 #B05A2C #82B02C
monochromatic
#141C4E #202E7F #2C40B0 #485DD1 #7988DD

Accessibility & contrast

On white

8.51
#2C40B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#2C40B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C40B0
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C40B0#FFFFFF#000000##FFFFFF
##2C40B01.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B4
Deuteranopia (green-blind)
#0046AE
Tritanopia (blue-blind)
#005D72
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2c40b0;
/* rgb */ color: rgb(44, 64, 176);
/* oklch */ color: oklch(43.1% 0.179 269.4);
Tailwind
colors: {
  custom: {
    50: '#7974c9',
    500: '#2c40b0',
    950: '#000000',
  },
}
SCSS
$custom: #2c40b0;
$custom-light: #7974c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2c40b0",
  "rgb": {
    "r": 44,
    "g": 64,
    "b": 176
  },
  "hsl": {
    "h": 230.909,
    "s": 60,
    "l": 43.137
  },
  "oklch": {
    "l": 0.43126,
    "c": 0.17857,
    "h": 269.4
  },
  "luminance": 0.07337
}

Semantic roles & 50–950 ramp

primary
#2C40B0
secondary
#C6B972
accent
#CB45E3
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #2C40B0

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

Preview Lab → · Contrast checker → · Palette generator →

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