#2E42B6#2E42B6

#2E42B6 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 44.1% C 0.184 H 269.5°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#2E42B6
RGBrgb(46, 66, 182)
HSLhsl(231, 60%, 45%)
HSVhsv(231, 75%, 71%)
CMYKcmyk(74.7%, 63.7%, 0%, 28.6%)
CIE-LABlab(33.68, 33.29, -63.50)
CIE-LCHlch(33.68, 71.70, 297.67°)
OKLaboklab(44.14% -0.0015 -0.1836)
OKLCHoklch(44.14% 0.184 269.5)
XYZxyz(11.5155, 7.8534, 45.1559)
Luminance0.0785 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E42B6 #B6A22E
analogous
#2E86B6 #2E42B6 #5E2EB6
triadic
#2E42B6 #B62E42 #42B62E
tetradic
#2E42B6 #B62E86 #B6A22E #2EB65E
square
#2E42B6 #B62E86 #B6A22E #2EB65E
split-complementary
#2E42B6 #B65E2E #86B62E
monochromatic
#151F54 #223085 #2E42B6 #4F62D2 #808EDF

Accessibility & contrast

On white

8.17
#2E42B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#2E42B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E42B6
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E42B6#FFFFFF#000000##FFFFFF
##2E42B61.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BA
Deuteranopia (green-blind)
#0049B4
Tritanopia (blue-blind)
#006076
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2e42b6;
/* rgb */ color: rgb(46, 66, 182);
/* oklch */ color: oklch(44.1% 0.184 269.5);
Tailwind
colors: {
  custom: {
    50: '#7b76cd',
    500: '#2e42b6',
    950: '#000000',
  },
}
SCSS
$custom: #2e42b6;
$custom-light: #7b76cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2e42b6",
  "rgb": {
    "r": 46,
    "g": 66,
    "b": 182
  },
  "hsl": {
    "h": 231.176,
    "s": 59.649,
    "l": 44.706
  },
  "oklch": {
    "l": 0.44136,
    "c": 0.18357,
    "h": 269.5
  },
  "luminance": 0.07855
}

Semantic roles & 50–950 ramp

primary
#2E42B6
secondary
#C8BC78
accent
#CC45E3
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #2E42B6

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

Preview Lab → · Contrast checker → · Palette generator →

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