#2B42B0#2B42B0

#2B42B0 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.4% C 0.176 H 268.6°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#2B42B0
RGBrgb(43, 66, 176)
HSLhsl(230, 61%, 43%)
HSVhsv(230, 76%, 69%)
CMYKcmyk(75.6%, 62.5%, 0%, 31%)
CIE-LABlab(33.01, 30.75, -61.03)
CIE-LCHlch(33.01, 68.34, 296.74°)
OKLaboklab(43.45% -0.0042 -0.1764)
OKLCHoklch(43.45% 0.176 268.6)
XYZxyz(10.7782, 7.5434, 41.9539)
Luminance0.0755 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B42B0 #B0992B
analogous
#2B84B0 #2B42B0 #562BB0
triadic
#2B42B0 #B02B42 #42B02B
tetradic
#2B42B0 #B02B84 #B0992B #2BB056
square
#2B42B0 #B02B84 #B0992B #2BB056
split-complementary
#2B42B0 #B0562B #84B02B
monochromatic
#131D4E #1F307F #2B42B0 #465ED2 #7889DE

Accessibility & contrast

On white

8.37
#2B42B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#2B42B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B42B0
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B42B0#FFFFFF#000000##FFFFFF
##2B42B01.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B4
Deuteranopia (green-blind)
#0048AE
Tritanopia (blue-blind)
#005E72
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2b42b0;
/* rgb */ color: rgb(43, 66, 176);
/* oklch */ color: oklch(43.4% 0.176 268.6);
Tailwind
colors: {
  custom: {
    50: '#7976c9',
    500: '#2b42b0',
    950: '#000000',
  },
}
SCSS
$custom: #2b42b0;
$custom-light: #7976c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2b42b0",
  "rgb": {
    "r": 43,
    "g": 66,
    "b": 176
  },
  "hsl": {
    "h": 229.624,
    "s": 60.731,
    "l": 42.941
  },
  "oklch": {
    "l": 0.43448,
    "c": 0.17644,
    "h": 268.6
  },
  "luminance": 0.07545
}

Semantic roles & 50–950 ramp

primary
#2B42B0
secondary
#C6B771
accent
#C844E4
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2B42B0

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

Preview Lab → · Contrast checker → · Palette generator →

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