#2C40B3#2C40B3

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

Color values

HEX#2C40B3
RGBrgb(44, 64, 179)
HSLhsl(231, 61%, 44%)
HSVhsv(231, 75%, 70%)
CMYKcmyk(75.4%, 64.2%, 0%, 29.8%)
CIE-LABlab(32.82, 33.26, -63.12)
CIE-LCHlch(32.82, 71.35, 297.79°)
OKLaboklab(43.4% -0.0021 -0.1825)
OKLCHoklch(43.4% 0.183 269.3)
XYZxyz(11.0060, 7.4557, 43.4981)
Luminance0.0746 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C40B3 #B39F2C
analogous
#2C83B3 #2C40B3 #5B2CB3
triadic
#2C40B3 #B32C40 #40B32C
tetradic
#2C40B3 #B32C83 #B39F2C #2CB35B
square
#2C40B3 #B32C83 #B39F2C #2CB35B
split-complementary
#2C40B3 #B35B2C #83B32C
monochromatic
#141D51 #202E82 #2C40B3 #4A5ED2 #7B8ADF

Accessibility & contrast

On white

8.43
#2C40B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#2C40B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C40B3
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C40B3#FFFFFF#000000##FFFFFF
##2C40B31.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B7
Deuteranopia (green-blind)
#0047B1
Tritanopia (blue-blind)
#005E73
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2c40b3;
/* rgb */ color: rgb(44, 64, 179);
/* oklch */ color: oklch(43.4% 0.183 269.3);
Tailwind
colors: {
  custom: {
    50: '#7a74cb',
    500: '#2c40b3',
    950: '#000000',
  },
}
SCSS
$custom: #2c40b3;
$custom-light: #7a74cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2c40b3",
  "rgb": {
    "r": 44,
    "g": 64,
    "b": 179
  },
  "hsl": {
    "h": 231.111,
    "s": 60.538,
    "l": 43.725
  },
  "oklch": {
    "l": 0.43401,
    "c": 0.18253,
    "h": 269.3
  },
  "luminance": 0.07457
}

Semantic roles & 50–950 ramp

primary
#2C40B3
secondary
#C7BB74
accent
#CC44E4
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #2C40B3

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

Preview Lab → · Contrast checker → · Palette generator →

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