#2B42AC#2B42AC

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

Color values

HEX#2B42AC
RGBrgb(43, 66, 172)
HSLhsl(229, 60%, 42%)
HSVhsv(229, 75%, 67%)
CMYKcmyk(75%, 61.6%, 0%, 32.5%)
CIE-LABlab(32.67, 29.26, -59.20)
CIE-LCHlch(32.67, 66.04, 296.30°)
OKLaboklab(43.09% -0.0041 -0.171)
OKLCHoklch(43.09% 0.171 268.6)
XYZxyz(10.3883, 7.3875, 39.9002)
Luminance0.0739 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B42AC #AC952B
analogous
#2B83AC #2B42AC #542BAC
triadic
#2B42AC #AC2B42 #42AC2B
tetradic
#2B42AC #AC2B83 #AC952B #2BAC54
square
#2B42AC #AC2B83 #AC952B #2BAC54
split-complementary
#2B42AC #AC542B #83AC2B
monochromatic
#131C4A #1F2F7B #2B42AC #445DD0 #7587DC

Accessibility & contrast

On white

8.48
#2B42AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#2B42AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B42AC
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B42AC#FFFFFF#000000##FFFFFF
##2B42AC1.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b42ac;
/* rgb */ color: rgb(43, 66, 172);
/* oklch */ color: oklch(43.1% 0.171 268.6);
Tailwind
colors: {
  custom: {
    50: '#7876c6',
    500: '#2b42ac',
    950: '#000000',
  },
}
SCSS
$custom: #2b42ac;
$custom-light: #7876c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2b42ac",
  "rgb": {
    "r": 43,
    "g": 66,
    "b": 172
  },
  "hsl": {
    "h": 229.302,
    "s": 60,
    "l": 42.157
  },
  "oklch": {
    "l": 0.43091,
    "c": 0.17108,
    "h": 268.6
  },
  "luminance": 0.07389
}

Semantic roles & 50–950 ramp

primary
#2B42AC
secondary
#C4B56F
accent
#C745E3
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2B42AC

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

Preview Lab → · Contrast checker → · Palette generator →

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