#2E38D7#2E38D7

#2E38D7 is a mid, highly saturated blue. Relative luminance 0.083; OKLCH L 45.8% C 0.235 H 270.0°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#2E38D7
RGBrgb(46, 56, 215)
HSLhsl(236, 68%, 51%)
HSVhsv(236, 79%, 84%)
CMYKcmyk(78.6%, 74%, 0%, 15.7%)
CIE-LABlab(34.63, 50.79, -81.20)
CIE-LCHlch(34.63, 95.77, 302.02°)
OKLaboklab(45.78% 0 -0.2352)
OKLCHoklch(45.78% 0.235 270)
XYZxyz(14.8024, 8.3138, 65.1014)
Luminance0.0832 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E38D7 #D7CD2E
analogous
#2E8CD7 #2E38D7 #782ED7
triadic
#2E38D7 #D72E38 #38D72E
tetradic
#2E38D7 #D72E8C #D7CD2E #2ED778
square
#2E38D7 #D72E8C #D7CD2E #2ED778
split-complementary
#2E38D7 #D7782E #8CD72E
monochromatic
#161C74 #2028A8 #2E38D7 #6169E1 #959AEB

Accessibility & contrast

On white

7.89
#2E38D7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#2E38D7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E38D7
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E38D7#FFFFFF#000000##FFFFFF
##2E38D71.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ADC
Deuteranopia (green-blind)
#0049D4
Tritanopia (blue-blind)
#006785
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2e38d7;
/* rgb */ color: rgb(46, 56, 215);
/* oklch */ color: oklch(45.8% 0.235 270.0);
Tailwind
colors: {
  custom: {
    50: '#8470e5',
    500: '#2e38d7',
    950: '#000000',
  },
}
SCSS
$custom: #2e38d7;
$custom-light: #8470e5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e38d7",
  "rgb": {
    "r": 46,
    "g": 56,
    "b": 215
  },
  "hsl": {
    "h": 236.45,
    "s": 67.871,
    "l": 51.176
  },
  "oklch": {
    "l": 0.45778,
    "c": 0.2352,
    "h": 270
  },
  "luminance": 0.08315
}

Semantic roles & 50–950 ramp

primary
#2E38D7
secondary
#D6D18B
accent
#E03DEB
background
#F9F6FE
surface
#F1ECFC
border
#CBC7D5
text
#0D0816
muted
#7E7B84

Preview Lab

Preview with #2E38D7

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

Preview Lab → · Contrast checker → · Palette generator →

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