#2B42AB#2B42AB

#2B42AB is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.0% C 0.170 H 268.6°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#2B42AB
RGBrgb(43, 66, 171)
HSLhsl(229, 60%, 42%)
HSVhsv(229, 75%, 67%)
CMYKcmyk(74.9%, 61.4%, 0%, 32.9%)
CIE-LABlab(32.59, 28.89, -58.74)
CIE-LCHlch(32.59, 65.46, 296.19°)
OKLaboklab(43% -0.0041 -0.1697)
OKLCHoklch(43% 0.17 268.6)
XYZxyz(10.2926, 7.3492, 39.3963)
Luminance0.0735 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B42AB #AB942B
analogous
#2B82AB #2B42AB #542BAB
triadic
#2B42AB #AB2B42 #42AB2B
tetradic
#2B42AB #AB2B82 #AB942B #2BAB54
square
#2B42AB #AB2B82 #AB942B #2BAB54
split-complementary
#2B42AB #AB542B #82AB2B
monochromatic
#121C49 #1F2F7A #2B42AB #435DD0 #7487DC

Accessibility & contrast

On white

8.50
#2B42AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B42AB
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B42AB#FFFFFF#000000##FFFFFF
##2B42AB1.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.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: #2b42ab;
/* rgb */ color: rgb(43, 66, 171);
/* oklch */ color: oklch(43.0% 0.170 268.6);
Tailwind
colors: {
  custom: {
    50: '#7776c5',
    500: '#2b42ab',
    950: '#000000',
  },
}
SCSS
$custom: #2b42ab;
$custom-light: #7776c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b42ab",
  "rgb": {
    "r": 43,
    "g": 66,
    "b": 171
  },
  "hsl": {
    "h": 229.219,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.43003,
    "c": 0.16973,
    "h": 268.6
  },
  "luminance": 0.0735
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2B42AB

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

Preview Lab → · Contrast checker → · Palette generator →

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