#2B42A5#2B42A5

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

Color values

HEX#2B42A5
RGBrgb(43, 66, 165)
HSLhsl(229, 59%, 41%)
HSVhsv(229, 74%, 65%)
CMYKcmyk(73.9%, 60%, 0%, 35.3%)
CIE-LABlab(32.09, 26.64, -55.96)
CIE-LCHlch(32.09, 61.97, 295.46°)
OKLaboklab(42.48% -0.0042 -0.1615)
OKLCHoklch(42.48% 0.162 268.5)
XYZxyz(9.7337, 7.1256, 36.4524)
Luminance0.0713 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B42A5 #A58E2B
analogous
#2B7FA5 #2B42A5 #512BA5
triadic
#2B42A5 #A52B42 #42A52B
tetradic
#2B42A5 #A52B7F #A58E2B #2BA551
square
#2B42A5 #A52B7F #A58E2B #2BA551
split-complementary
#2B42A5 #A5512B #7FA52B
monochromatic
#121B44 #1E2F74 #2B42A5 #405BCD #7184DA

Accessibility & contrast

On white

8.66
#2B42A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#2B42A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B42A5
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B42A5#FFFFFF#000000##FFFFFF
##2B42A51.008.662.438.66
#FFFFFF8.661.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A8
Deuteranopia (green-blind)
#0046A3
Tritanopia (blue-blind)
#005B6D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2b42a5;
/* rgb */ color: rgb(43, 66, 165);
/* oklch */ color: oklch(42.5% 0.162 268.5);
Tailwind
colors: {
  custom: {
    50: '#7676c1',
    500: '#2b42a5',
    950: '#000000',
  },
}
SCSS
$custom: #2b42a5;
$custom-light: #7676c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b42a5",
  "rgb": {
    "r": 43,
    "g": 66,
    "b": 165
  },
  "hsl": {
    "h": 228.689,
    "s": 58.654,
    "l": 40.784
  },
  "oklch": {
    "l": 0.42478,
    "c": 0.16156,
    "h": 268.5
  },
  "luminance": 0.07127
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2B42A5

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

Preview Lab → · Contrast checker → · Palette generator →

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