#2E38B7#2E38B7

#2E38B7 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.5% C 0.196 H 271.3°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#2E38B7
RGBrgb(46, 56, 183)
HSLhsl(236, 60%, 45%)
HSVhsv(236, 75%, 72%)
CMYKcmyk(74.9%, 69.4%, 0%, 28.2%)
CIE-LABlab(31.41, 39.94, -67.81)
CIE-LCHlch(31.41, 78.70, 300.50°)
OKLaboklab(42.51% 0.0043 -0.1962)
OKLCHoklch(42.51% 0.196 271.3)
XYZxyz(11.0852, 6.8269, 45.5241)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E38B7 #B7AD2E
analogous
#2E7DB7 #2E38B7 #682EB7
triadic
#2E38B7 #B72E38 #38B72E
tetradic
#2E38B7 #B72E7D #B7AD2E #2EB768
square
#2E38B7 #B72E7D #B7AD2E #2EB768
split-complementary
#2E38B7 #B7682E #7DB72E
monochromatic
#151A55 #222986 #2E38B7 #4F59D3 #8087DF

Accessibility & contrast

On white

8.88
#2E38B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#2E38B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E38B7
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E38B7#FFFFFF#000000##FFFFFF
##2E38B71.008.882.378.88
#FFFFFF8.881.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BB
Deuteranopia (green-blind)
#0043B5
Tritanopia (blue-blind)
#005B73
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2e38b7;
/* rgb */ color: rgb(46, 56, 183);
/* oklch */ color: oklch(42.5% 0.196 271.3);
Tailwind
colors: {
  custom: {
    50: '#7c6fce',
    500: '#2e38b7',
    950: '#000000',
  },
}
SCSS
$custom: #2e38b7;
$custom-light: #7c6fce;
$custom-dark: #000000;
JSON
{
  "hex": "#2e38b7",
  "rgb": {
    "r": 46,
    "g": 56,
    "b": 183
  },
  "hsl": {
    "h": 235.62,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.42512,
    "c": 0.19627,
    "h": 271.3
  },
  "luminance": 0.06828
}

Semantic roles & 50–950 ramp

primary
#2E38B7
secondary
#C8C279
accent
#D745E3
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #2E38B7

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

Preview Lab → · Contrast checker → · Palette generator →

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