#2E42A8#2E42A8

#2E42A8 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.9% C 0.165 H 269.6°. Best body text is #FFFFFF at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#2E42A8
RGBrgb(46, 66, 168)
HSLhsl(230, 57%, 42%)
HSVhsv(230, 73%, 66%)
CMYKcmyk(72.6%, 60.7%, 0%, 34.1%)
CIE-LABlab(32.49, 28.14, -57.10)
CIE-LCHlch(32.49, 63.66, 296.24°)
OKLaboklab(42.89% -0.0012 -0.1648)
OKLCHoklch(42.89% 0.165 269.6)
XYZxyz(10.1404, 7.3034, 37.9135)
Luminance0.0730 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E42A8 #A8942E
analogous
#2E7FA8 #2E42A8 #572EA8
triadic
#2E42A8 #A82E42 #42A82E
tetradic
#2E42A8 #A82E7F #A8942E #2EA857
square
#2E42A8 #A82E7F #A8942E #2EA857
split-complementary
#2E42A8 #A8572E #7FA82E
monochromatic
#141C48 #212F78 #2E42A8 #475DCD #7787DA

Accessibility & contrast

On white

8.53
#2E42A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#2E42A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E42A8
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E42A8#FFFFFF#000000##FFFFFF
##2E42A81.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AB
Deuteranopia (green-blind)
#0047A6
Tritanopia (blue-blind)
#005C6E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2e42a8;
/* rgb */ color: rgb(46, 66, 168);
/* oklch */ color: oklch(42.9% 0.165 269.6);
Tailwind
colors: {
  custom: {
    50: '#7876c3',
    500: '#2e42a8',
    950: '#000000',
  },
}
SCSS
$custom: #2e42a8;
$custom-light: #7876c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2e42a8",
  "rgb": {
    "r": 46,
    "g": 66,
    "b": 168
  },
  "hsl": {
    "h": 230.164,
    "s": 57.009,
    "l": 41.961
  },
  "oklch": {
    "l": 0.4289,
    "c": 0.16481,
    "h": 269.6
  },
  "luminance": 0.07304
}

Semantic roles & 50–950 ramp

primary
#2E42A8
secondary
#C2B470
accent
#C748E0
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2E42A8

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

Preview Lab → · Contrast checker → · Palette generator →

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