#2C42AB#2C42AB

#2C42AB is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.1% C 0.169 H 268.9°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#2C42AB
RGBrgb(44, 66, 171)
HSLhsl(230, 59%, 42%)
HSVhsv(230, 74%, 67%)
CMYKcmyk(74.3%, 61.4%, 0%, 32.9%)
CIE-LABlab(32.64, 29.01, -58.66)
CIE-LCHlch(32.64, 65.44, 296.31°)
OKLaboklab(43.05% -0.0032 -0.1694)
OKLCHoklch(43.05% 0.169 268.9)
XYZxyz(10.3351, 7.3711, 39.3983)
Luminance0.0737 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C42AB #AB952C
analogous
#2C82AB #2C42AB #552CAB
triadic
#2C42AB #AB2C42 #42AB2C
tetradic
#2C42AB #AB2C82 #AB952C #2CAB55
square
#2C42AB #AB2C82 #AB952C #2CAB55
split-complementary
#2C42AB #AB552C #82AB2C
monochromatic
#131C4A #1F2F7A #2C42AB #455DCF #7687DC

Accessibility & contrast

On white

8.49
#2C42AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#2C42AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C42AB
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C42AB#FFFFFF#000000##FFFFFF
##2C42AB1.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AE
Deuteranopia (green-blind)
#0047A9
Tritanopia (blue-blind)
#005D70
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2c42ab;
/* rgb */ color: rgb(44, 66, 171);
/* oklch */ color: oklch(43.1% 0.169 268.9);
Tailwind
colors: {
  custom: {
    50: '#7876c5',
    500: '#2c42ab',
    950: '#000000',
  },
}
SCSS
$custom: #2c42ab;
$custom-light: #7876c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c42ab",
  "rgb": {
    "r": 44,
    "g": 66,
    "b": 171
  },
  "hsl": {
    "h": 229.606,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.43052,
    "c": 0.16945,
    "h": 268.9
  },
  "luminance": 0.07372
}

Semantic roles & 50–950 ramp

primary
#2C42AB
secondary
#C3B56F
accent
#C746E2
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2C42AB

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

Preview Lab → · Contrast checker → · Palette generator →

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