#2E42AA#2E42AA

#2E42AA is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.1% C 0.168 H 269.6°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#2E42AA
RGBrgb(46, 66, 170)
HSLhsl(230, 57%, 42%)
HSVhsv(230, 73%, 67%)
CMYKcmyk(72.9%, 61.2%, 0%, 33.3%)
CIE-LABlab(32.65, 28.88, -58.03)
CIE-LCHlch(32.65, 64.82, 296.46°)
OKLaboklab(43.07% -0.0012 -0.1675)
OKLCHoklch(43.07% 0.168 269.6)
XYZxyz(10.3281, 7.3785, 38.9023)
Luminance0.0738 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E42AA #AA962E
analogous
#2E80AA #2E42AA #582EAA
triadic
#2E42AA #AA2E42 #42AA2E
tetradic
#2E42AA #AA2E80 #AA962E #2EAA58
square
#2E42AA #AA2E80 #AA962E #2EAA58
split-complementary
#2E42AA #AA582E #80AA2E
monochromatic
#141D4A #212F7A #2E42AA #485DCD #7888DA

Accessibility & contrast

On white

8.48
#2E42AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#2E42AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E42AA
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E42AA#FFFFFF#000000##FFFFFF
##2E42AA1.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AD
Deuteranopia (green-blind)
#0047A8
Tritanopia (blue-blind)
#005C6F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2e42aa;
/* rgb */ color: rgb(46, 66, 170);
/* oklch */ color: oklch(43.1% 0.168 269.6);
Tailwind
colors: {
  custom: {
    50: '#7876c4',
    500: '#2e42aa',
    950: '#000000',
  },
}
SCSS
$custom: #2e42aa;
$custom-light: #7876c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2e42aa",
  "rgb": {
    "r": 46,
    "g": 66,
    "b": 170
  },
  "hsl": {
    "h": 230.323,
    "s": 57.407,
    "l": 42.353
  },
  "oklch": {
    "l": 0.43065,
    "c": 0.16753,
    "h": 269.6
  },
  "luminance": 0.0738
}

Semantic roles & 50–950 ramp

primary
#2E42AA
secondary
#C3B571
accent
#C847E1
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2E42AA

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

Preview Lab → · Contrast checker → · Palette generator →

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