#2E38B6#2E38B6

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

Color values

HEX#2E38B6
RGBrgb(46, 56, 182)
HSLhsl(236, 60%, 45%)
HSVhsv(236, 75%, 71%)
CMYKcmyk(74.7%, 69.2%, 0%, 28.6%)
CIE-LABlab(31.31, 39.59, -67.38)
CIE-LCHlch(31.31, 78.15, 300.44°)
OKLaboklab(42.41% 0.0044 -0.195)
OKLCHoklch(42.41% 0.195 271.3)
XYZxyz(10.9815, 6.7854, 44.9779)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E38B6 #B6AC2E
analogous
#2E7CB6 #2E38B6 #682EB6
triadic
#2E38B6 #B62E38 #38B62E
tetradic
#2E38B6 #B62E7C #B6AC2E #2EB668
square
#2E38B6 #B62E7C #B6AC2E #2EB668
split-complementary
#2E38B6 #B6682E #7CB62E
monochromatic
#151A54 #222985 #2E38B6 #4F58D2 #8087DF

Accessibility & contrast

On white

8.91
#2E38B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#2E38B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E38B6
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E38B6#FFFFFF#000000##FFFFFF
##2E38B61.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BA
Deuteranopia (green-blind)
#0043B4
Tritanopia (blue-blind)
#005B72
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2e38b6;
/* rgb */ color: rgb(46, 56, 182);
/* oklch */ color: oklch(42.4% 0.195 271.3);
Tailwind
colors: {
  custom: {
    50: '#7c6fcd',
    500: '#2e38b6',
    950: '#000000',
  },
}
SCSS
$custom: #2e38b6;
$custom-light: #7c6fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#2e38b6",
  "rgb": {
    "r": 46,
    "g": 56,
    "b": 182
  },
  "hsl": {
    "h": 235.588,
    "s": 59.649,
    "l": 44.706
  },
  "oklch": {
    "l": 0.42413,
    "c": 0.195,
    "h": 271.3
  },
  "luminance": 0.06787
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E38B6

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

Preview Lab → · Contrast checker → · Palette generator →

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