#2E42BB#2E42BB

#2E42BB is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.6% C 0.190 H 269.5°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#2E42BB
RGBrgb(46, 66, 187)
HSLhsl(231, 61%, 46%)
HSVhsv(231, 75%, 73%)
CMYKcmyk(75.4%, 64.7%, 0%, 26.7%)
CIE-LABlab(34.12, 35.11, -65.73)
CIE-LCHlch(34.12, 74.52, 298.11°)
OKLaboklab(44.6% -0.0018 -0.1901)
OKLCHoklch(44.6% 0.19 269.5)
XYZxyz(12.0415, 8.0638, 47.9259)
Luminance0.0806 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E42BB #BBA72E
analogous
#2E89BB #2E42BB #602EBB
triadic
#2E42BB #BB2E42 #42BB2E
tetradic
#2E42BB #BB2E89 #BBA72E #2EBB60
square
#2E42BB #BB2E89 #BBA72E #2EBB60
split-complementary
#2E42BB #BB602E #89BB2E
monochromatic
#161F59 #22318A #2E42BB #5264D4 #8390E0

Accessibility & contrast

On white

8.04
#2E42BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#2E42BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E42BB
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E42BB#FFFFFF#000000##FFFFFF
##2E42BB1.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BF
Deuteranopia (green-blind)
#004AB9
Tritanopia (blue-blind)
#006278
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2e42bb;
/* rgb */ color: rgb(46, 66, 187);
/* oklch */ color: oklch(44.6% 0.190 269.5);
Tailwind
colors: {
  custom: {
    50: '#7c76d0',
    500: '#2e42bb',
    950: '#000000',
  },
}
SCSS
$custom: #2e42bb;
$custom-light: #7c76d0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e42bb",
  "rgb": {
    "r": 46,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 231.489,
    "s": 60.515,
    "l": 45.686
  },
  "oklch": {
    "l": 0.44595,
    "c": 0.19011,
    "h": 269.5
  },
  "luminance": 0.08065
}

Semantic roles & 50–950 ramp

primary
#2E42BB
secondary
#CABE7B
accent
#CD44E4
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #2E42BB

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

Preview Lab → · Contrast checker → · Palette generator →

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