#2C42B6#2C42B6

#2C42B6 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 44.0% C 0.184 H 268.9°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#2C42B6
RGBrgb(44, 66, 182)
HSLhsl(230, 61%, 44%)
HSVhsv(230, 76%, 71%)
CMYKcmyk(75.8%, 63.7%, 0%, 28.6%)
CIE-LABlab(33.58, 33.07, -63.66)
CIE-LCHlch(33.58, 71.74, 297.45°)
OKLaboklab(44.04% -0.0034 -0.1841)
OKLCHoklch(44.04% 0.184 268.9)
XYZxyz(11.4275, 7.8081, 45.1517)
Luminance0.0781 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C42B6 #B6A02C
analogous
#2C87B6 #2C42B6 #5B2CB6
triadic
#2C42B6 #B62C42 #42B62C
tetradic
#2C42B6 #B62C87 #B6A02C #2CB65B
square
#2C42B6 #B62C87 #B6A02C #2CB65B
split-complementary
#2C42B6 #B65B2C #87B62C
monochromatic
#141E53 #203085 #2C42B6 #4C61D4 #7D8DE0

Accessibility & contrast

On white

8.20
#2C42B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#2C42B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C42B6
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C42B6#FFFFFF#000000##FFFFFF
##2C42B61.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BA
Deuteranopia (green-blind)
#0049B4
Tritanopia (blue-blind)
#006076
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2c42b6;
/* rgb */ color: rgb(44, 66, 182);
/* oklch */ color: oklch(44.0% 0.184 268.9);
Tailwind
colors: {
  custom: {
    50: '#7a76cd',
    500: '#2c42b6',
    950: '#000000',
  },
}
SCSS
$custom: #2c42b6;
$custom-light: #7a76cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2c42b6",
  "rgb": {
    "r": 44,
    "g": 66,
    "b": 182
  },
  "hsl": {
    "h": 230.435,
    "s": 61.062,
    "l": 44.314
  },
  "oklch": {
    "l": 0.4404,
    "c": 0.18411,
    "h": 268.9
  },
  "luminance": 0.07809
}

Semantic roles & 50–950 ramp

primary
#2C42B6
secondary
#C8BB76
accent
#CB44E4
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #2C42B6

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

Preview Lab → · Contrast checker → · Palette generator →

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