#2C40C2#2C40C2

#2C40C2 is a dark, highly saturated blue. Relative luminance 0.081; OKLCH L 44.8% C 0.202 H 269.2°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#2C40C2
RGBrgb(44, 64, 194)
HSLhsl(232, 63%, 47%)
HSVhsv(232, 77%, 76%)
CMYKcmyk(77.3%, 67%, 0%, 23.9%)
CIE-LABlab(34.18, 38.69, -69.74)
CIE-LCHlch(34.18, 79.75, 299.02°)
OKLaboklab(44.81% -0.003 -0.2019)
OKLCHoklch(44.81% 0.202 269.2)
XYZxyz(12.6064, 8.0959, 51.9267)
Luminance0.0810 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C40C2 #C2AE2C
analogous
#2C8BC2 #2C40C2 #632CC2
triadic
#2C40C2 #C22C40 #40C22C
tetradic
#2C40C2 #C22C8B #C2AE2C #2CC263
square
#2C40C2 #C22C8B #C2AE2C #2CC263
split-complementary
#2C40C2 #C2632C #8BC22C
monochromatic
#151F5E #213090 #2C40C2 #5365D8 #8592E3

Accessibility & contrast

On white

8.02
#2C40C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#2C40C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C40C2
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C40C2#FFFFFF#000000##FFFFFF
##2C40C21.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C6
Deuteranopia (green-blind)
#0049C0
Tritanopia (blue-blind)
#00637B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2c40c2;
/* rgb */ color: rgb(44, 64, 194);
/* oklch */ color: oklch(44.8% 0.202 269.2);
Tailwind
colors: {
  custom: {
    50: '#7e75d6',
    500: '#2c40c2',
    950: '#000000',
  },
}
SCSS
$custom: #2c40c2;
$custom-light: #7e75d6;
$custom-dark: #000000;
JSON
{
  "hex": "#2c40c2",
  "rgb": {
    "r": 44,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 232,
    "s": 63.025,
    "l": 46.667
  },
  "oklch": {
    "l": 0.44811,
    "c": 0.20188,
    "h": 269.2
  },
  "luminance": 0.08097
}

Semantic roles & 50–950 ramp

primary
#2C40C2
secondary
#CDC27D
accent
#D042E6
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #2C40C2

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

Preview Lab → · Contrast checker → · Palette generator →

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