#2C42B8#2C42B8

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

Color values

HEX#2C42B8
RGBrgb(44, 66, 184)
HSLhsl(231, 61%, 45%)
HSVhsv(231, 76%, 72%)
CMYKcmyk(76.1%, 64.1%, 0%, 27.8%)
CIE-LABlab(33.76, 33.81, -64.55)
CIE-LCHlch(33.76, 72.87, 297.64°)
OKLaboklab(44.22% -0.0035 -0.1867)
OKLCHoklch(44.22% 0.187 268.9)
XYZxyz(11.6357, 7.8913, 46.2481)
Luminance0.0789 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C42B8 #B8A22C
analogous
#2C88B8 #2C42B8 #5C2CB8
triadic
#2C42B8 #B82C42 #42B82C
tetradic
#2C42B8 #B82C88 #B8A22C #2CB85C
square
#2C42B8 #B82C88 #B8A22C #2CB85C
split-complementary
#2C42B8 #B85C2C #88B82C
monochromatic
#141F55 #203087 #2C42B8 #4D62D4 #7E8EE0

Accessibility & contrast

On white

8.14
#2C42B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#2C42B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C42B8
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C42B8#FFFFFF#000000##FFFFFF
##2C42B81.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BC
Deuteranopia (green-blind)
#0049B6
Tritanopia (blue-blind)
#006177
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2c42b8;
/* rgb */ color: rgb(44, 66, 184);
/* oklch */ color: oklch(44.2% 0.187 268.9);
Tailwind
colors: {
  custom: {
    50: '#7b76ce',
    500: '#2c42b8',
    950: '#000000',
  },
}
SCSS
$custom: #2c42b8;
$custom-light: #7b76ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2c42b8",
  "rgb": {
    "r": 44,
    "g": 66,
    "b": 184
  },
  "hsl": {
    "h": 230.571,
    "s": 61.404,
    "l": 44.706
  },
  "oklch": {
    "l": 0.44223,
    "c": 0.18673,
    "h": 268.9
  },
  "luminance": 0.07893
}

Semantic roles & 50–950 ramp

primary
#2C42B8
secondary
#C9BC77
accent
#CB43E5
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #2C42B8

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

Preview Lab → · Contrast checker → · Palette generator →

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