#2B42A2#2B42A2

#2B42A2 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.2% C 0.157 H 268.5°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#2B42A2
RGBrgb(43, 66, 162)
HSLhsl(228, 58%, 40%)
HSVhsv(228, 73%, 64%)
CMYKcmyk(73.5%, 59.3%, 0%, 36.5%)
CIE-LABlab(31.85, 25.51, -54.55)
CIE-LCHlch(31.85, 60.22, 295.06°)
OKLaboklab(42.22% -0.0042 -0.1574)
OKLCHoklch(42.22% 0.157 268.5)
XYZxyz(9.4638, 7.0177, 35.0312)
Luminance0.0702 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B42A2 #A28B2B
analogous
#2B7EA2 #2B42A2 #4F2BA2
triadic
#2B42A2 #A22B42 #42A22B
tetradic
#2B42A2 #A22B7E #A28B2B #2BA24F
square
#2B42A2 #A22B7E #A28B2B #2BA24F
split-complementary
#2B42A2 #A24F2B #7EA22B
monochromatic
#111B41 #1E2E72 #2B42A2 #3E5ACC #6F83D9

Accessibility & contrast

On white

8.74
#2B42A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#2B42A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B42A2
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B42A2#FFFFFF#000000##FFFFFF
##2B42A21.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A5
Deuteranopia (green-blind)
#0046A0
Tritanopia (blue-blind)
#005A6B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2b42a2;
/* rgb */ color: rgb(43, 66, 162);
/* oklch */ color: oklch(42.2% 0.157 268.5);
Tailwind
colors: {
  custom: {
    50: '#7576be',
    500: '#2b42a2',
    950: '#000000',
  },
}
SCSS
$custom: #2b42a2;
$custom-light: #7576be;
$custom-dark: #000000;
JSON
{
  "hex": "#2b42a2",
  "rgb": {
    "r": 43,
    "g": 66,
    "b": 162
  },
  "hsl": {
    "h": 228.403,
    "s": 58.049,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42219,
    "c": 0.15743,
    "h": 268.5
  },
  "luminance": 0.07019
}

Semantic roles & 50–950 ramp

primary
#2B42A2
secondary
#C0AF69
accent
#C347E1
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2B42A2

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

Preview Lab → · Contrast checker → · Palette generator →

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