#2B42B5#2B42B5

#2B42B5 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.9% C 0.183 H 268.6°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#2B42B5
RGBrgb(43, 66, 181)
HSLhsl(230, 62%, 44%)
HSVhsv(230, 76%, 71%)
CMYKcmyk(76.2%, 63.5%, 0%, 29%)
CIE-LABlab(33.45, 32.60, -63.29)
CIE-LCHlch(33.45, 71.19, 297.25°)
OKLaboklab(43.9% -0.0043 -0.183)
OKLCHoklch(43.9% 0.183 268.6)
XYZxyz(11.2821, 7.7450, 44.6074)
Luminance0.0775 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B42B5 #B59E2B
analogous
#2B87B5 #2B42B5 #592BB5
triadic
#2B42B5 #B52B42 #42B52B
tetradic
#2B42B5 #B52B87 #B59E2B #2BB559
square
#2B42B5 #B52B87 #B59E2B #2BB559
split-complementary
#2B42B5 #B5592B #87B52B
monochromatic
#141E52 #1F3084 #2B42B5 #4960D4 #7B8CE0

Accessibility & contrast

On white

8.24
#2B42B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#2B42B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B42B5
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B42B5#FFFFFF#000000##FFFFFF
##2B42B51.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B9
Deuteranopia (green-blind)
#0048B3
Tritanopia (blue-blind)
#006075
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2b42b5;
/* rgb */ color: rgb(43, 66, 181);
/* oklch */ color: oklch(43.9% 0.183 268.6);
Tailwind
colors: {
  custom: {
    50: '#7a76cc',
    500: '#2b42b5',
    950: '#000000',
  },
}
SCSS
$custom: #2b42b5;
$custom-light: #7a76cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2b42b5",
  "rgb": {
    "r": 43,
    "g": 66,
    "b": 181
  },
  "hsl": {
    "h": 230,
    "s": 61.607,
    "l": 43.922
  },
  "oklch": {
    "l": 0.43901,
    "c": 0.18306,
    "h": 268.6
  },
  "luminance": 0.07746
}

Semantic roles & 50–950 ramp

primary
#2B42B5
secondary
#C8BA74
accent
#CA43E5
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #2B42B5

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

Preview Lab → · Contrast checker → · Palette generator →

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