#2E42AC#2E42AC

#2E42AC is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.2% C 0.170 H 269.6°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#2E42AC
RGBrgb(46, 66, 172)
HSLhsl(230, 58%, 43%)
HSVhsv(230, 73%, 67%)
CMYKcmyk(73.3%, 61.6%, 0%, 32.5%)
CIE-LABlab(32.82, 29.62, -58.95)
CIE-LCHlch(32.82, 65.98, 296.68°)
OKLaboklab(43.24% -0.0013 -0.1702)
OKLCHoklch(43.24% 0.17 269.6)
XYZxyz(10.5188, 7.4547, 39.9063)
Luminance0.0746 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E42AC #AC982E
analogous
#2E81AC #2E42AC #592EAC
triadic
#2E42AC #AC2E42 #42AC2E
tetradic
#2E42AC #AC2E81 #AC982E #2EAC59
square
#2E42AC #AC2E81 #AC982E #2EAC59
split-complementary
#2E42AC #AC592E #81AC2E
monochromatic
#141D4B #212F7C #2E42AC #495ECE #7989DB

Accessibility & contrast

On white

8.43
#2E42AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#2E42AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E42AC
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E42AC#FFFFFF#000000##FFFFFF
##2E42AC1.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AF
Deuteranopia (green-blind)
#0047AA
Tritanopia (blue-blind)
#005D70
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2e42ac;
/* rgb */ color: rgb(46, 66, 172);
/* oklch */ color: oklch(43.2% 0.170 269.6);
Tailwind
colors: {
  custom: {
    50: '#7976c6',
    500: '#2e42ac',
    950: '#000000',
  },
}
SCSS
$custom: #2e42ac;
$custom-light: #7976c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2e42ac",
  "rgb": {
    "r": 46,
    "g": 66,
    "b": 172
  },
  "hsl": {
    "h": 230.476,
    "s": 57.798,
    "l": 42.745
  },
  "oklch": {
    "l": 0.4324,
    "c": 0.17024,
    "h": 269.6
  },
  "luminance": 0.07456
}

Semantic roles & 50–950 ramp

primary
#2E42AC
secondary
#C3B772
accent
#C947E1
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2E42AC

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

Preview Lab → · Contrast checker → · Palette generator →

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