#2E42A4#2E42A4

#2E42A4 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.5% C 0.159 H 269.6°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#2E42A4
RGBrgb(46, 66, 164)
HSLhsl(230, 56%, 41%)
HSVhsv(230, 72%, 64%)
CMYKcmyk(72%, 59.8%, 0%, 35.7%)
CIE-LABlab(32.16, 26.66, -55.24)
CIE-LCHlch(32.16, 61.33, 295.76°)
OKLaboklab(42.55% -0.0012 -0.1593)
OKLCHoklch(42.55% 0.159 269.6)
XYZxyz(9.7735, 7.1566, 35.9811)
Luminance0.0716 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E42A4 #A4902E
analogous
#2E7DA4 #2E42A4 #552EA4
triadic
#2E42A4 #A42E42 #42A42E
tetradic
#2E42A4 #A42E7D #A4902E #2EA455
square
#2E42A4 #A42E7D #A4902E #2EA455
split-complementary
#2E42A4 #A4552E #7DA42E
monochromatic
#131C44 #212F74 #2E42A4 #455BCB #7485D8

Accessibility & contrast

On white

8.64
#2E42A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#2E42A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E42A4
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E42A4#FFFFFF#000000##FFFFFF
##2E42A41.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A7
Deuteranopia (green-blind)
#0046A2
Tritanopia (blue-blind)
#005A6C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2e42a4;
/* rgb */ color: rgb(46, 66, 164);
/* oklch */ color: oklch(42.5% 0.159 269.6);
Tailwind
colors: {
  custom: {
    50: '#7776c0',
    500: '#2e42a4',
    950: '#000000',
  },
}
SCSS
$custom: #2e42a4;
$custom-light: #7776c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e42a4",
  "rgb": {
    "r": 46,
    "g": 66,
    "b": 164
  },
  "hsl": {
    "h": 229.831,
    "s": 56.19,
    "l": 41.176
  },
  "oklch": {
    "l": 0.42545,
    "c": 0.15932,
    "h": 269.6
  },
  "luminance": 0.07158
}

Semantic roles & 50–950 ramp

primary
#2E42A4
secondary
#C0B26E
accent
#C648DF
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2E42A4

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

Preview Lab → · Contrast checker → · Palette generator →

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