#2E42B7#2E42B7

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

Color values

HEX#2E42B7
RGBrgb(46, 66, 183)
HSLhsl(231, 60%, 45%)
HSVhsv(231, 75%, 72%)
CMYKcmyk(74.9%, 63.9%, 0%, 28.2%)
CIE-LABlab(33.76, 33.66, -63.95)
CIE-LCHlch(33.76, 72.26, 297.76°)
OKLaboklab(44.23% -0.0016 -0.1849)
OKLCHoklch(44.23% 0.185 269.5)
XYZxyz(11.6192, 7.8949, 45.7021)
Luminance0.0790 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E42B7 #B7A32E
analogous
#2E86B7 #2E42B7 #5F2EB7
triadic
#2E42B7 #B72E42 #42B72E
tetradic
#2E42B7 #B72E86 #B7A32E #2EB75F
square
#2E42B7 #B72E86 #B7A32E #2EB75F
split-complementary
#2E42B7 #B75F2E #86B72E
monochromatic
#151F55 #223086 #2E42B7 #4F63D3 #808EDF

Accessibility & contrast

On white

8.14
#2E42B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#2E42B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E42B7
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E42B7#FFFFFF#000000##FFFFFF
##2E42B71.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BB
Deuteranopia (green-blind)
#0049B5
Tritanopia (blue-blind)
#006176
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2e42b7;
/* rgb */ color: rgb(46, 66, 183);
/* oklch */ color: oklch(44.2% 0.185 269.5);
Tailwind
colors: {
  custom: {
    50: '#7b76ce',
    500: '#2e42b7',
    950: '#000000',
  },
}
SCSS
$custom: #2e42b7;
$custom-light: #7b76ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2e42b7",
  "rgb": {
    "r": 46,
    "g": 66,
    "b": 183
  },
  "hsl": {
    "h": 231.241,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.44228,
    "c": 0.18489,
    "h": 269.5
  },
  "luminance": 0.07896
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E42B7

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

Preview Lab → · Contrast checker → · Palette generator →

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