#2E34B7#2E34B7

#2E34B7 is a dark, highly saturated blue. Relative luminance 0.065; OKLCH L 41.9% C 0.201 H 271.8°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#2E34B7
RGBrgb(46, 52, 183)
HSLhsl(237, 60%, 45%)
HSVhsv(237, 75%, 72%)
CMYKcmyk(74.9%, 71.6%, 0%, 28.2%)
CIE-LABlab(30.53, 42.35, -69.26)
CIE-LCHlch(30.53, 81.18, 301.44°)
OKLaboklab(41.88% 0.0064 -0.2004)
OKLCHoklch(41.88% 0.201 271.8)
XYZxyz(10.8991, 6.4546, 45.4620)
Luminance0.0646 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E34B7 #B7B12E
analogous
#2E79B7 #2E34B7 #6C2EB7
triadic
#2E34B7 #B72E34 #34B72E
tetradic
#2E34B7 #B72E79 #B7B12E #2EB76C
square
#2E34B7 #B72E79 #B7B12E #2EB76C
split-complementary
#2E34B7 #B76C2E #79B72E
monochromatic
#151855 #222686 #2E34B7 #4F55D3 #8084DF

Accessibility & contrast

On white

9.17
#2E34B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#2E34B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E34B7
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E34B7#FFFFFF#000000##FFFFFF
##2E34B71.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBB
Deuteranopia (green-blind)
#0041B5
Tritanopia (blue-blind)
#005972
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2e34b7;
/* rgb */ color: rgb(46, 52, 183);
/* oklch */ color: oklch(41.9% 0.201 271.8);
Tailwind
colors: {
  custom: {
    50: '#7d6cce',
    500: '#2e34b7',
    950: '#000000',
  },
}
SCSS
$custom: #2e34b7;
$custom-light: #7d6cce;
$custom-dark: #000000;
JSON
{
  "hex": "#2e34b7",
  "rgb": {
    "r": 46,
    "g": 52,
    "b": 183
  },
  "hsl": {
    "h": 237.372,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.4188,
    "c": 0.20053,
    "h": 271.8
  },
  "luminance": 0.06456
}

Semantic roles & 50–950 ramp

primary
#2E34B7
secondary
#C8C579
accent
#DC45E3
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #2E34B7

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

Preview Lab → · Contrast checker → · Palette generator →

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