#2E42CD#2E42CD

#2E42CD is a mid, highly saturated blue. Relative luminance 0.089; OKLCH L 46.3% C 0.213 H 269.2°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#2E42CD
RGBrgb(46, 66, 205)
HSLhsl(232, 63%, 49%)
HSVhsv(232, 78%, 80%)
CMYKcmyk(77.6%, 67.8%, 0%, 19.6%)
CIE-LABlab(35.76, 41.53, -73.55)
CIE-LCHlch(35.76, 84.47, 299.45°)
OKLaboklab(46.29% -0.003 -0.213)
OKLCHoklch(46.29% 0.213 269.2)
XYZxyz(14.0906, 8.8835, 58.7178)
Luminance0.0888 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E42CD #CDB92E
analogous
#2E92CD #2E42CD #6A2ECD
triadic
#2E42CD #CD2E42 #42CD2E
tetradic
#2E42CD #CD2E92 #CDB92E #2ECD6A
square
#2E42CD #CD2E92 #CDB92E #2ECD6A
split-complementary
#2E42CD #CD6A2E #92CD2E
monochromatic
#182269 #23329B #2E42CD #5D6DDB #8F9AE6

Accessibility & contrast

On white

7.56
#2E42CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#2E42CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E42CD
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E42CD#FFFFFF#000000##FFFFFF
##2E42CD1.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD1
Deuteranopia (green-blind)
#004CCA
Tritanopia (blue-blind)
#006882
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2e42cd;
/* rgb */ color: rgb(46, 66, 205);
/* oklch */ color: oklch(46.3% 0.213 269.2);
Tailwind
colors: {
  custom: {
    50: '#8177dd',
    500: '#2e42cd',
    950: '#000000',
  },
}
SCSS
$custom: #2e42cd;
$custom-light: #8177dd;
$custom-dark: #000000;
JSON
{
  "hex": "#2e42cd",
  "rgb": {
    "r": 46,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 232.453,
    "s": 63.347,
    "l": 49.216
  },
  "oklch": {
    "l": 0.46295,
    "c": 0.21298,
    "h": 269.2
  },
  "luminance": 0.08885
}

Semantic roles & 50–950 ramp

primary
#2E42CD
secondary
#D0C786
accent
#D241E6
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #2E42CD

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

Preview Lab → · Contrast checker → · Palette generator →

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