#2C42BA#2C42BA

#2C42BA is a dark, vivid blue. Relative luminance 0.080; OKLCH L 44.4% C 0.189 H 268.9°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#2C42BA
RGBrgb(44, 66, 186)
HSLhsl(231, 62%, 45%)
HSVhsv(231, 76%, 73%)
CMYKcmyk(76.3%, 64.5%, 0%, 27.1%)
CIE-LABlab(33.93, 34.53, -65.44)
CIE-LCHlch(33.93, 74.00, 297.82°)
OKLaboklab(44.41% -0.0036 -0.1893)
OKLCHoklch(44.41% 0.189 268.9)
XYZxyz(11.8468, 7.9758, 47.3600)
Luminance0.0798 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C42BA #BAA42C
analogous
#2C89BA #2C42BA #5D2CBA
triadic
#2C42BA #BA2C42 #42BA2C
tetradic
#2C42BA #BA2C89 #BAA42C #2CBA5D
square
#2C42BA #BA2C89 #BAA42C #2CBA5D
split-complementary
#2C42BA #BA5D2C #89BA2C
monochromatic
#151F57 #203089 #2C42BA #4E63D5 #808FE1

Accessibility & contrast

On white

8.09
#2C42BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#2C42BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C42BA
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C42BA#FFFFFF#000000##FFFFFF
##2C42BA1.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BE
Deuteranopia (green-blind)
#0049B8
Tritanopia (blue-blind)
#006278
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2c42ba;
/* rgb */ color: rgb(44, 66, 186);
/* oklch */ color: oklch(44.4% 0.189 268.9);
Tailwind
colors: {
  custom: {
    50: '#7b76d0',
    500: '#2c42ba',
    950: '#000000',
  },
}
SCSS
$custom: #2c42ba;
$custom-light: #7b76d0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c42ba",
  "rgb": {
    "r": 44,
    "g": 66,
    "b": 186
  },
  "hsl": {
    "h": 230.704,
    "s": 61.739,
    "l": 45.098
  },
  "oklch": {
    "l": 0.44407,
    "c": 0.18933,
    "h": 268.9
  },
  "luminance": 0.07977
}

Semantic roles & 50–950 ramp

primary
#2C42BA
secondary
#CABD78
accent
#CC43E5
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #2C42BA

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

Preview Lab → · Contrast checker → · Palette generator →

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