#2C40BA#2C40BA

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

Color values

HEX#2C40BA
RGBrgb(44, 64, 186)
HSLhsl(232, 62%, 45%)
HSVhsv(232, 76%, 73%)
CMYKcmyk(76.3%, 65.6%, 0%, 27.1%)
CIE-LABlab(33.45, 35.81, -66.24)
CIE-LCHlch(33.45, 75.30, 298.40°)
OKLaboklab(44.05% -0.0024 -0.1916)
OKLCHoklch(44.05% 0.192 269.3)
XYZxyz(11.7320, 7.7461, 47.3217)
Luminance0.0775 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C40BA #BAA62C
analogous
#2C87BA #2C40BA #5F2CBA
triadic
#2C40BA #BA2C40 #40BA2C
tetradic
#2C40BA #BA2C87 #BAA62C #2CBA5F
square
#2C40BA #BA2C87 #BAA62C #2CBA5F
split-complementary
#2C40BA #BA5F2C #87BA2C
monochromatic
#151E57 #202F89 #2C40BA #4E61D5 #808DE1

Accessibility & contrast

On white

8.24
#2C40BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#2C40BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C40BA
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C40BA#FFFFFF#000000##FFFFFF
##2C40BA1.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BE
Deuteranopia (green-blind)
#0048B8
Tritanopia (blue-blind)
#006077
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2c40ba;
/* rgb */ color: rgb(44, 64, 186);
/* oklch */ color: oklch(44.1% 0.192 269.3);
Tailwind
colors: {
  custom: {
    50: '#7c75d0',
    500: '#2c40ba',
    950: '#000000',
  },
}
SCSS
$custom: #2c40ba;
$custom-light: #7c75d0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c40ba",
  "rgb": {
    "r": 44,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 231.549,
    "s": 61.739,
    "l": 45.098
  },
  "oklch": {
    "l": 0.44052,
    "c": 0.19166,
    "h": 269.3
  },
  "luminance": 0.07747
}

Semantic roles & 50–950 ramp

primary
#2C40BA
secondary
#CABE78
accent
#CE43E5
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #2C40BA

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

Preview Lab → · Contrast checker → · Palette generator →

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