#2E42B8#2E42B8

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

Color values

HEX#2E42B8
RGBrgb(46, 66, 184)
HSLhsl(231, 60%, 45%)
HSVhsv(231, 75%, 72%)
CMYKcmyk(75%, 64.1%, 0%, 27.8%)
CIE-LABlab(33.85, 34.02, -64.39)
CIE-LCHlch(33.85, 72.83, 297.85°)
OKLaboklab(44.32% -0.0016 -0.1862)
OKLCHoklch(44.32% 0.186 269.5)
XYZxyz(11.7237, 7.9367, 46.2522)
Luminance0.0794 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E42B8 #B8A42E
analogous
#2E87B8 #2E42B8 #5F2EB8
triadic
#2E42B8 #B82E42 #42B82E
tetradic
#2E42B8 #B82E87 #B8A42E #2EB85F
square
#2E42B8 #B82E87 #B8A42E #2EB85F
split-complementary
#2E42B8 #B85F2E #87B82E
monochromatic
#161F56 #223087 #2E42B8 #5063D3 #818FDF

Accessibility & contrast

On white

8.12
#2E42B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#2E42B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E42B8
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E42B8#FFFFFF#000000##FFFFFF
##2E42B81.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BC
Deuteranopia (green-blind)
#0049B6
Tritanopia (blue-blind)
#006177
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2e42b8;
/* rgb */ color: rgb(46, 66, 184);
/* oklch */ color: oklch(44.3% 0.186 269.5);
Tailwind
colors: {
  custom: {
    50: '#7c76ce',
    500: '#2e42b8',
    950: '#000000',
  },
}
SCSS
$custom: #2e42b8;
$custom-light: #7c76ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2e42b8",
  "rgb": {
    "r": 46,
    "g": 66,
    "b": 184
  },
  "hsl": {
    "h": 231.304,
    "s": 60,
    "l": 45.098
  },
  "oklch": {
    "l": 0.44319,
    "c": 0.1862,
    "h": 269.5
  },
  "luminance": 0.07938
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E42B8

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

Preview Lab → · Contrast checker → · Palette generator →

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