#2E42A5#2E42A5

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

Color values

HEX#2E42A5
RGBrgb(46, 66, 165)
HSLhsl(230, 56%, 41%)
HSVhsv(230, 72%, 65%)
CMYKcmyk(72.1%, 60%, 0%, 35.3%)
CIE-LABlab(32.24, 27.03, -55.70)
CIE-LCHlch(32.24, 61.92, 295.88°)
OKLaboklab(42.63% -0.0012 -0.1607)
OKLCHoklch(42.63% 0.161 269.6)
XYZxyz(9.8641, 7.1929, 36.4585)
Luminance0.0719 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E42A5 #A5912E
analogous
#2E7EA5 #2E42A5 #562EA5
triadic
#2E42A5 #A52E42 #42A52E
tetradic
#2E42A5 #A52E7E #A5912E #2EA556
square
#2E42A5 #A52E7E #A5912E #2EA556
split-complementary
#2E42A5 #A5562E #7EA52E
monochromatic
#131C45 #212F75 #2E42A5 #455CCB #7586D8

Accessibility & contrast

On white

8.61
#2E42A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#2E42A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E42A5
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E42A5#FFFFFF#000000##FFFFFF
##2E42A51.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A8
Deuteranopia (green-blind)
#0047A3
Tritanopia (blue-blind)
#005B6D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2e42a5;
/* rgb */ color: rgb(46, 66, 165);
/* oklch */ color: oklch(42.6% 0.161 269.6);
Tailwind
colors: {
  custom: {
    50: '#7776c0',
    500: '#2e42a5',
    950: '#000000',
  },
}
SCSS
$custom: #2e42a5;
$custom-light: #7776c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e42a5",
  "rgb": {
    "r": 46,
    "g": 66,
    "b": 165
  },
  "hsl": {
    "h": 229.916,
    "s": 56.398,
    "l": 41.373
  },
  "oklch": {
    "l": 0.42631,
    "c": 0.1607,
    "h": 269.6
  },
  "luminance": 0.07194
}

Semantic roles & 50–950 ramp

primary
#2E42A5
secondary
#C0B36F
accent
#C648E0
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2E42A5

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

Preview Lab → · Contrast checker → · Palette generator →

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