#2C42B3#2C42B3

#2C42B3 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.8% C 0.180 H 268.9°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#2C42B3
RGBrgb(44, 66, 179)
HSLhsl(230, 61%, 44%)
HSVhsv(230, 75%, 70%)
CMYKcmyk(75.4%, 63.1%, 0%, 29.8%)
CIE-LABlab(33.32, 31.97, -62.31)
CIE-LCHlch(33.32, 70.03, 297.16°)
OKLaboklab(43.77% -0.0033 -0.1801)
OKLCHoklch(43.77% 0.18 268.9)
XYZxyz(11.1208, 7.6854, 43.5364)
Luminance0.0769 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C42B3 #B39D2C
analogous
#2C85B3 #2C42B3 #592CB3
triadic
#2C42B3 #B32C42 #42B32C
tetradic
#2C42B3 #B32C85 #B39D2C #2CB359
square
#2C42B3 #B32C85 #B39D2C #2CB359
split-complementary
#2C42B3 #B3592C #85B32C
monochromatic
#141E51 #203082 #2C42B3 #4A60D2 #7B8BDF

Accessibility & contrast

On white

8.28
#2C42B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#2C42B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C42B3
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C42B3#FFFFFF#000000##FFFFFF
##2C42B31.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B7
Deuteranopia (green-blind)
#0048B1
Tritanopia (blue-blind)
#005F74
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2c42b3;
/* rgb */ color: rgb(44, 66, 179);
/* oklch */ color: oklch(43.8% 0.180 268.9);
Tailwind
colors: {
  custom: {
    50: '#7a76cb',
    500: '#2c42b3',
    950: '#000000',
  },
}
SCSS
$custom: #2c42b3;
$custom-light: #7a76cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2c42b3",
  "rgb": {
    "r": 44,
    "g": 66,
    "b": 179
  },
  "hsl": {
    "h": 230.222,
    "s": 60.538,
    "l": 43.725
  },
  "oklch": {
    "l": 0.43767,
    "c": 0.18015,
    "h": 268.9
  },
  "luminance": 0.07687
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C42B3

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

Preview Lab → · Contrast checker → · Palette generator →

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