#2B42B4#2B42B4

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

Color values

HEX#2B42B4
RGBrgb(43, 66, 180)
HSLhsl(230, 61%, 44%)
HSVhsv(230, 76%, 71%)
CMYKcmyk(76.1%, 63.3%, 0%, 29.4%)
CIE-LABlab(33.36, 32.23, -62.84)
CIE-LCHlch(33.36, 70.62, 297.15°)
OKLaboklab(43.81% -0.0043 -0.1817)
OKLCHoklch(43.81% 0.182 268.6)
XYZxyz(11.1798, 7.7041, 44.0690)
Luminance0.0770 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B42B4 #B49D2B
analogous
#2B86B4 #2B42B4 #582BB4
triadic
#2B42B4 #B42B42 #42B42B
tetradic
#2B42B4 #B42B86 #B49D2B #2BB458
square
#2B42B4 #B42B86 #B49D2B #2BB458
split-complementary
#2B42B4 #B4582B #86B42B
monochromatic
#131E51 #1F3083 #2B42B4 #4960D3 #7A8BDF

Accessibility & contrast

On white

8.26
#2B42B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#2B42B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B42B4
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B42B4#FFFFFF#000000##FFFFFF
##2B42B41.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B8
Deuteranopia (green-blind)
#0048B2
Tritanopia (blue-blind)
#006075
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2b42b4;
/* rgb */ color: rgb(43, 66, 180);
/* oklch */ color: oklch(43.8% 0.182 268.6);
Tailwind
colors: {
  custom: {
    50: '#7a76cb',
    500: '#2b42b4',
    950: '#000000',
  },
}
SCSS
$custom: #2b42b4;
$custom-light: #7a76cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2b42b4",
  "rgb": {
    "r": 43,
    "g": 66,
    "b": 180
  },
  "hsl": {
    "h": 229.927,
    "s": 61.435,
    "l": 43.725
  },
  "oklch": {
    "l": 0.4381,
    "c": 0.18174,
    "h": 268.6
  },
  "luminance": 0.07705
}

Semantic roles & 50–950 ramp

primary
#2B42B4
secondary
#C7B973
accent
#C943E5
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #2B42B4

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

Preview Lab → · Contrast checker → · Palette generator →

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