#2E42A2#2E42A2

#2E42A2 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.4% C 0.157 H 269.5°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#2E42A2
RGBrgb(46, 66, 162)
HSLhsl(230, 56%, 41%)
HSVhsv(230, 72%, 64%)
CMYKcmyk(71.6%, 59.3%, 0%, 36.5%)
CIE-LABlab(32.00, 25.91, -54.29)
CIE-LCHlch(32.00, 60.16, 295.51°)
OKLaboklab(42.38% -0.0013 -0.1566)
OKLCHoklch(42.38% 0.157 269.5)
XYZxyz(9.5943, 7.0849, 35.0373)
Luminance0.0709 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E42A2 #A28E2E
analogous
#2E7CA2 #2E42A2 #542EA2
triadic
#2E42A2 #A22E42 #42A22E
tetradic
#2E42A2 #A22E7C #A28E2E #2EA254
square
#2E42A2 #A22E7C #A28E2E #2EA254
split-complementary
#2E42A2 #A2542E #7CA22E
monochromatic
#131B43 #202F72 #2E42A2 #435BCA #7384D7

Accessibility & contrast

On white

8.69
#2E42A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#2E42A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E42A2
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E42A2#FFFFFF#000000##FFFFFF
##2E42A21.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A5
Deuteranopia (green-blind)
#0046A0
Tritanopia (blue-blind)
#005A6B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2e42a2;
/* rgb */ color: rgb(46, 66, 162);
/* oklch */ color: oklch(42.4% 0.157 269.5);
Tailwind
colors: {
  custom: {
    50: '#7776be',
    500: '#2e42a2',
    950: '#000000',
  },
}
SCSS
$custom: #2e42a2;
$custom-light: #7776be;
$custom-dark: #000000;
JSON
{
  "hex": "#2e42a2",
  "rgb": {
    "r": 46,
    "g": 66,
    "b": 162
  },
  "hsl": {
    "h": 229.655,
    "s": 55.769,
    "l": 40.784
  },
  "oklch": {
    "l": 0.42375,
    "c": 0.15657,
    "h": 269.5
  },
  "luminance": 0.07086
}

Semantic roles & 50–950 ramp

primary
#2E42A2
secondary
#BFB16D
accent
#C549DF
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2E42A2

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

Preview Lab → · Contrast checker → · Palette generator →

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