#2E34D7#2E34D7

#2E34D7 is a mid, highly saturated blue. Relative luminance 0.079; OKLCH L 45.2% C 0.239 H 270.3°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#2E34D7
RGBrgb(46, 52, 215)
HSLhsl(238, 68%, 51%)
HSVhsv(238, 79%, 84%)
CMYKcmyk(78.6%, 75.8%, 0%, 15.7%)
CIE-LABlab(33.86, 52.96, -82.47)
CIE-LCHlch(33.86, 98.01, 302.71°)
OKLaboklab(45.23% 0.0013 -0.2388)
OKLCHoklch(45.23% 0.239 270.3)
XYZxyz(14.6163, 7.9415, 65.0393)
Luminance0.0794 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E34D7 #D7D12E
analogous
#2E88D7 #2E34D7 #7C2ED7
triadic
#2E34D7 #D72E34 #34D72E
tetradic
#2E34D7 #D72E88 #D7D12E #2ED77C
square
#2E34D7 #D72E88 #D7D12E #2ED77C
split-complementary
#2E34D7 #D77C2E #88D72E
monochromatic
#161A74 #2025A8 #2E34D7 #6166E1 #9598EB

Accessibility & contrast

On white

8.11
#2E34D7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#2E34D7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E34D7
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E34D7#FFFFFF#000000##FFFFFF
##2E34D71.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058DC
Deuteranopia (green-blind)
#0047D4
Tritanopia (blue-blind)
#006584
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2e34d7;
/* rgb */ color: rgb(46, 52, 215);
/* oklch */ color: oklch(45.2% 0.239 270.3);
Tailwind
colors: {
  custom: {
    50: '#846ee5',
    500: '#2e34d7',
    950: '#000000',
  },
}
SCSS
$custom: #2e34d7;
$custom-light: #846ee5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e34d7",
  "rgb": {
    "r": 46,
    "g": 52,
    "b": 215
  },
  "hsl": {
    "h": 237.87,
    "s": 67.871,
    "l": 51.176
  },
  "oklch": {
    "l": 0.45234,
    "c": 0.23885,
    "h": 270.3
  },
  "luminance": 0.07943
}

Semantic roles & 50–950 ramp

primary
#2E34D7
secondary
#D6D38B
accent
#E53DEB
background
#F9F6FE
surface
#F1ECFC
border
#CBC7D5
text
#0D0716
muted
#7E7A84

Preview Lab

Preview with #2E34D7

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

Preview Lab → · Contrast checker → · Palette generator →

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