#2B42A4#2B42A4

#2B42A4 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.4% C 0.160 H 268.5°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#2B42A4
RGBrgb(43, 66, 164)
HSLhsl(229, 58%, 41%)
HSVhsv(229, 74%, 64%)
CMYKcmyk(73.8%, 59.8%, 0%, 35.7%)
CIE-LABlab(32.01, 26.26, -55.49)
CIE-LCHlch(32.01, 61.39, 295.33°)
OKLaboklab(42.39% -0.0042 -0.1601)
OKLCHoklch(42.39% 0.16 268.5)
XYZxyz(9.6430, 7.0893, 35.9749)
Luminance0.0709 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B42A4 #A48D2B
analogous
#2B7EA4 #2B42A4 #502BA4
triadic
#2B42A4 #A42B42 #42A42B
tetradic
#2B42A4 #A42B7E #A48D2B #2BA450
square
#2B42A4 #A42B7E #A48D2B #2BA450
split-complementary
#2B42A4 #A4502B #7EA42B
monochromatic
#121B43 #1E2E74 #2B42A4 #3F5ACD #7084D9

Accessibility & contrast

On white

8.68
#2B42A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#2B42A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B42A4
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B42A4#FFFFFF#000000##FFFFFF
##2B42A41.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A7
Deuteranopia (green-blind)
#0046A2
Tritanopia (blue-blind)
#005B6C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2b42a4;
/* rgb */ color: rgb(43, 66, 164);
/* oklch */ color: oklch(42.4% 0.160 268.5);
Tailwind
colors: {
  custom: {
    50: '#7676c0',
    500: '#2b42a4',
    950: '#000000',
  },
}
SCSS
$custom: #2b42a4;
$custom-light: #7676c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2b42a4",
  "rgb": {
    "r": 43,
    "g": 66,
    "b": 164
  },
  "hsl": {
    "h": 228.595,
    "s": 58.454,
    "l": 40.588
  },
  "oklch": {
    "l": 0.42391,
    "c": 0.16018,
    "h": 268.5
  },
  "luminance": 0.0709
}

Semantic roles & 50–950 ramp

primary
#2B42A4
secondary
#C1B06A
accent
#C446E2
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2B42A4

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

Preview Lab → · Contrast checker → · Palette generator →

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