#2C42B5#2C42B5

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

Color values

HEX#2C42B5
RGBrgb(44, 66, 181)
HSLhsl(230, 61%, 44%)
HSVhsv(230, 76%, 71%)
CMYKcmyk(75.7%, 63.5%, 0%, 29%)
CIE-LABlab(33.49, 32.70, -63.21)
CIE-LCHlch(33.49, 71.17, 297.36°)
OKLaboklab(43.95% -0.0034 -0.1828)
OKLCHoklch(43.95% 0.183 268.9)
XYZxyz(11.3245, 7.7669, 44.6094)
Luminance0.0777 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C42B5 #B59F2C
analogous
#2C87B5 #2C42B5 #5B2CB5
triadic
#2C42B5 #B52C42 #42B52C
tetradic
#2C42B5 #B52C87 #B59F2C #2CB55B
square
#2C42B5 #B52C87 #B59F2C #2CB55B
split-complementary
#2C42B5 #B55B2C #87B52C
monochromatic
#141E53 #203084 #2C42B5 #4B61D3 #7C8CDF

Accessibility & contrast

On white

8.22
#2C42B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C42B5
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C42B5#FFFFFF#000000##FFFFFF
##2C42B51.008.222.558.22
#FFFFFF8.221.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B9
Deuteranopia (green-blind)
#0048B3
Tritanopia (blue-blind)
#006075
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2c42b5;
/* rgb */ color: rgb(44, 66, 181);
/* oklch */ color: oklch(43.9% 0.183 268.9);
Tailwind
colors: {
  custom: {
    50: '#7a76cc',
    500: '#2c42b5',
    950: '#000000',
  },
}
SCSS
$custom: #2c42b5;
$custom-light: #7a76cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2c42b5",
  "rgb": {
    "r": 44,
    "g": 66,
    "b": 181
  },
  "hsl": {
    "h": 230.365,
    "s": 60.889,
    "l": 44.118
  },
  "oklch": {
    "l": 0.43948,
    "c": 0.18279,
    "h": 268.9
  },
  "luminance": 0.07768
}

Semantic roles & 50–950 ramp

primary
#2C42B5
secondary
#C8BA75
accent
#CA44E4
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #2C42B5

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

Preview Lab → · Contrast checker → · Palette generator →

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