#2E42E2#2E42E2

#2E42E2 is a mid, highly saturated blue. Relative luminance 0.100; OKLCH L 48.4% C 0.238 H 268.8°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#2E42E2
RGBrgb(46, 66, 226)
HSLhsl(233, 76%, 53%)
HSVhsv(233, 80%, 89%)
CMYKcmyk(79.6%, 70.8%, 0%, 11.4%)
CIE-LABlab(37.78, 48.77, -82.30)
CIE-LCHlch(37.78, 95.66, 300.65°)
OKLaboklab(48.36% -0.0051 -0.2384)
OKLCHoklch(48.36% 0.239 268.8)
XYZxyz(16.7977, 9.9663, 72.9751)
Luminance0.0997 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E42E2 #E2CE2E
analogous
#2E9CE2 #2E42E2 #742EE2
triadic
#2E42E2 #E22E42 #42E22E
tetradic
#2E42E2 #E22E9C #E2CE2E #2EE274
square
#2E42E2 #E22E9C #E2CE2E #2EE274
split-complementary
#2E42E2 #E2742E #9CE22E
monochromatic
#121F83 #1A2BB9 #2E42E2 #6473E9 #99A3F1

Accessibility & contrast

On white

7.01
#2E42E2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#2E42E2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E42E2
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E42E2#FFFFFF#000000##FFFFFF
##2E42E21.007.012.997.01
#FFFFFF7.011.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062E7
Deuteranopia (green-blind)
#0050DF
Tritanopia (blue-blind)
#00708E
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2e42e2;
/* rgb */ color: rgb(46, 66, 226);
/* oklch */ color: oklch(48.4% 0.238 268.8);
Tailwind
colors: {
  custom: {
    50: '#8677ec',
    500: '#2e42e2',
    950: '#000000',
  },
}
SCSS
$custom: #2e42e2;
$custom-light: #8677ec;
$custom-dark: #000000;
JSON
{
  "hex": "#2e42e2",
  "rgb": {
    "r": 46,
    "g": 66,
    "b": 226
  },
  "hsl": {
    "h": 233.333,
    "s": 75.63,
    "l": 53.333
  },
  "oklch": {
    "l": 0.48364,
    "c": 0.2385,
    "h": 268.8
  },
  "luminance": 0.09968
}

Semantic roles & 50–950 ramp

primary
#2E42E2
secondary
#DDD48F
accent
#DD36F2
background
#F9F7FE
surface
#F1EDFD
border
#CBC8D5
text
#0D0916
muted
#7E7B84

Preview Lab

Preview with #2E42E2

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

Preview Lab → · Contrast checker → · Palette generator →

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