#2C40B5#2C40B5

#2C40B5 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.6% C 0.185 H 269.3°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#2C40B5
RGBrgb(44, 64, 181)
HSLhsl(231, 61%, 44%)
HSVhsv(231, 76%, 71%)
CMYKcmyk(75.7%, 64.6%, 0%, 29%)
CIE-LABlab(33.00, 33.99, -64.02)
CIE-LCHlch(33.00, 72.48, 297.97°)
OKLaboklab(43.59% -0.0022 -0.1851)
OKLCHoklch(43.59% 0.185 269.3)
XYZxyz(11.2097, 7.5372, 44.5712)
Luminance0.0754 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C40B5 #B5A12C
analogous
#2C85B5 #2C40B5 #5D2CB5
triadic
#2C40B5 #B52C40 #40B52C
tetradic
#2C40B5 #B52C85 #B5A12C #2CB55D
square
#2C40B5 #B52C85 #B5A12C #2CB55D
split-complementary
#2C40B5 #B55D2C #85B52C
monochromatic
#141D53 #202F84 #2C40B5 #4B5FD3 #7C8BDF

Accessibility & contrast

On white

8.37
#2C40B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#2C40B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C40B5
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C40B5#FFFFFF#000000##FFFFFF
##2C40B51.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B9
Deuteranopia (green-blind)
#0047B3
Tritanopia (blue-blind)
#005F74
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2c40b5;
/* rgb */ color: rgb(44, 64, 181);
/* oklch */ color: oklch(43.6% 0.185 269.3);
Tailwind
colors: {
  custom: {
    50: '#7a74cc',
    500: '#2c40b5',
    950: '#000000',
  },
}
SCSS
$custom: #2c40b5;
$custom-light: #7a74cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2c40b5",
  "rgb": {
    "r": 44,
    "g": 64,
    "b": 181
  },
  "hsl": {
    "h": 231.241,
    "s": 60.889,
    "l": 44.118
  },
  "oklch": {
    "l": 0.43586,
    "c": 0.18515,
    "h": 269.3
  },
  "luminance": 0.07538
}

Semantic roles & 50–950 ramp

primary
#2C40B5
secondary
#C8BC75
accent
#CD44E4
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #2C40B5

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

Preview Lab → · Contrast checker → · Palette generator →

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