#2E42DB#2E42DB

#2E42DB is a mid, highly saturated blue. Relative luminance 0.096; OKLCH L 47.7% C 0.230 H 268.9°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#2E42DB
RGBrgb(46, 66, 219)
HSLhsl(233, 71%, 52%)
HSVhsv(233, 79%, 86%)
CMYKcmyk(79%, 69.9%, 0%, 14.1%)
CIE-LABlab(37.10, 46.39, -79.43)
CIE-LCHlch(37.10, 91.98, 300.29°)
OKLaboklab(47.67% -0.0043 -0.2301)
OKLCHoklch(47.67% 0.23 268.9)
XYZxyz(15.8567, 9.5899, 68.0194)
Luminance0.0959 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E42DB #DBC72E
analogous
#2E98DB #2E42DB #712EDB
triadic
#2E42DB #DB2E42 #42DB2E
tetradic
#2E42DB #DB2E98 #DBC72E #2EDB71
square
#2E42DB #DB2E98 #DBC72E #2EDB71
split-complementary
#2E42DB #DB712E #98DB2E
monochromatic
#15217A #1E2FAE #2E42DB #6271E4 #96A0ED

Accessibility & contrast

On white

7.20
#2E42DB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#2E42DB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E42DB
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E42DB#FFFFFF#000000##FFFFFF
##2E42DB1.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060E0
Deuteranopia (green-blind)
#004FD8
Tritanopia (blue-blind)
#006D8A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2e42db;
/* rgb */ color: rgb(46, 66, 219);
/* oklch */ color: oklch(47.7% 0.230 268.9);
Tailwind
colors: {
  custom: {
    50: '#8477e7',
    500: '#2e42db',
    950: '#000000',
  },
}
SCSS
$custom: #2e42db;
$custom-light: #8477e7;
$custom-dark: #000000;
JSON
{
  "hex": "#2e42db",
  "rgb": {
    "r": 46,
    "g": 66,
    "b": 219
  },
  "hsl": {
    "h": 233.064,
    "s": 70.612,
    "l": 51.961
  },
  "oklch": {
    "l": 0.47665,
    "c": 0.23012,
    "h": 268.9
  },
  "luminance": 0.09592
}

Semantic roles & 50–950 ramp

primary
#2E42DB
secondary
#D8D08D
accent
#D93AED
background
#F9F7FE
surface
#F1EDFD
border
#CBC8D5
text
#0D0916
muted
#7E7B84

Preview Lab

Preview with #2E42DB

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

Preview Lab → · Contrast checker → · Palette generator →

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