#2C42B1#2C42B1

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

Color values

HEX#2C42B1
RGBrgb(44, 66, 177)
HSLhsl(230, 60%, 43%)
HSVhsv(230, 75%, 69%)
CMYKcmyk(75.1%, 62.7%, 0%, 30.6%)
CIE-LABlab(33.15, 31.23, -61.40)
CIE-LCHlch(33.15, 68.89, 296.96°)
OKLaboklab(43.59% -0.0033 -0.1775)
OKLCHoklch(43.59% 0.178 268.9)
XYZxyz(10.9200, 7.6051, 42.4789)
Luminance0.0761 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C42B1 #B19B2C
analogous
#2C84B1 #2C42B1 #582CB1
triadic
#2C42B1 #B12C42 #42B12C
tetradic
#2C42B1 #B12C84 #B19B2C #2CB158
square
#2C42B1 #B12C84 #B19B2C #2CB158
split-complementary
#2C42B1 #B1582C #84B12C
monochromatic
#141D4F #203080 #2C42B1 #495FD2 #7A8ADE

Accessibility & contrast

On white

8.33
#2C42B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#2C42B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C42B1
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C42B1#FFFFFF#000000##FFFFFF
##2C42B11.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B5
Deuteranopia (green-blind)
#0048AF
Tritanopia (blue-blind)
#005F73
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2c42b1;
/* rgb */ color: rgb(44, 66, 177);
/* oklch */ color: oklch(43.6% 0.177 268.9);
Tailwind
colors: {
  custom: {
    50: '#7976c9',
    500: '#2c42b1',
    950: '#000000',
  },
}
SCSS
$custom: #2c42b1;
$custom-light: #7976c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2c42b1",
  "rgb": {
    "r": 44,
    "g": 66,
    "b": 177
  },
  "hsl": {
    "h": 230.075,
    "s": 60.181,
    "l": 43.333
  },
  "oklch": {
    "l": 0.43586,
    "c": 0.1775,
    "h": 268.9
  },
  "luminance": 0.07606
}

Semantic roles & 50–950 ramp

primary
#2C42B1
secondary
#C6B873
accent
#C944E3
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #2C42B1

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

Preview Lab → · Contrast checker → · Palette generator →

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