#2C42B7#2C42B7

#2C42B7 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 44.1% C 0.185 H 268.9°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#2C42B7
RGBrgb(44, 66, 183)
HSLhsl(231, 61%, 45%)
HSVhsv(231, 76%, 72%)
CMYKcmyk(76%, 63.9%, 0%, 28.2%)
CIE-LABlab(33.67, 33.44, -64.11)
CIE-LCHlch(33.67, 72.30, 297.55°)
OKLaboklab(44.13% -0.0035 -0.1854)
OKLCHoklch(44.13% 0.185 268.9)
XYZxyz(11.5312, 7.8495, 45.6979)
Luminance0.0785 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C42B7 #B7A12C
analogous
#2C87B7 #2C42B7 #5C2CB7
triadic
#2C42B7 #B72C42 #42B72C
tetradic
#2C42B7 #B72C87 #B7A12C #2CB75C
square
#2C42B7 #B72C87 #B7A12C #2CB75C
split-complementary
#2C42B7 #B75C2C #87B72C
monochromatic
#141E54 #203086 #2C42B7 #4C62D4 #7E8DE0

Accessibility & contrast

On white

8.17
#2C42B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#2C42B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C42B7
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C42B7#FFFFFF#000000##FFFFFF
##2C42B71.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BB
Deuteranopia (green-blind)
#0049B5
Tritanopia (blue-blind)
#006176
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2c42b7;
/* rgb */ color: rgb(44, 66, 183);
/* oklch */ color: oklch(44.1% 0.185 268.9);
Tailwind
colors: {
  custom: {
    50: '#7b76ce',
    500: '#2c42b7',
    950: '#000000',
  },
}
SCSS
$custom: #2c42b7;
$custom-light: #7b76ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2c42b7",
  "rgb": {
    "r": 44,
    "g": 66,
    "b": 183
  },
  "hsl": {
    "h": 230.504,
    "s": 61.233,
    "l": 44.51
  },
  "oklch": {
    "l": 0.44131,
    "c": 0.18542,
    "h": 268.9
  },
  "luminance": 0.07851
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C42B7

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

Preview Lab → · Contrast checker → · Palette generator →

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