#2C42B0#2C42B0

#2C42B0 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.5% C 0.176 H 268.9°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#2C42B0
RGBrgb(44, 66, 176)
HSLhsl(230, 60%, 43%)
HSVhsv(230, 75%, 69%)
CMYKcmyk(75%, 62.5%, 0%, 31%)
CIE-LABlab(33.06, 30.86, -60.95)
CIE-LCHlch(33.06, 68.32, 296.86°)
OKLaboklab(43.5% -0.0033 -0.1761)
OKLCHoklch(43.5% 0.176 268.9)
XYZxyz(10.8207, 7.5653, 41.9559)
Luminance0.0757 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C42B0 #B09A2C
analogous
#2C84B0 #2C42B0 #582CB0
triadic
#2C42B0 #B02C42 #42B02C
tetradic
#2C42B0 #B02C84 #B09A2C #2CB058
square
#2C42B0 #B02C84 #B09A2C #2CB058
split-complementary
#2C42B0 #B0582C #84B02C
monochromatic
#141D4E #20307F #2C42B0 #485FD1 #798ADD

Accessibility & contrast

On white

8.36
#2C42B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#2C42B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C42B0
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C42B0#FFFFFF#000000##FFFFFF
##2C42B01.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B4
Deuteranopia (green-blind)
#0048AE
Tritanopia (blue-blind)
#005E72
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2c42b0;
/* rgb */ color: rgb(44, 66, 176);
/* oklch */ color: oklch(43.5% 0.176 268.9);
Tailwind
colors: {
  custom: {
    50: '#7976c9',
    500: '#2c42b0',
    950: '#000000',
  },
}
SCSS
$custom: #2c42b0;
$custom-light: #7976c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2c42b0",
  "rgb": {
    "r": 44,
    "g": 66,
    "b": 176
  },
  "hsl": {
    "h": 230,
    "s": 60,
    "l": 43.137
  },
  "oklch": {
    "l": 0.43496,
    "c": 0.17616,
    "h": 268.9
  },
  "luminance": 0.07566
}

Semantic roles & 50–950 ramp

primary
#2C42B0
secondary
#C6B872
accent
#C945E3
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2C42B0

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

Preview Lab → · Contrast checker → · Palette generator →

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