#2E34B6#2E34B6

#2E34B6 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.8% C 0.199 H 271.9°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#2E34B6
RGBrgb(46, 52, 182)
HSLhsl(237, 60%, 45%)
HSVhsv(237, 75%, 71%)
CMYKcmyk(74.7%, 71.4%, 0%, 28.6%)
CIE-LABlab(30.43, 42.01, -68.83)
CIE-LCHlch(30.43, 80.63, 301.40°)
OKLaboklab(41.78% 0.0065 -0.1992)
OKLCHoklch(41.78% 0.199 271.9)
XYZxyz(10.7954, 6.4131, 44.9158)
Luminance0.0641 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E34B6 #B6B02E
analogous
#2E78B6 #2E34B6 #6C2EB6
triadic
#2E34B6 #B62E34 #34B62E
tetradic
#2E34B6 #B62E78 #B6B02E #2EB66C
square
#2E34B6 #B62E78 #B6B02E #2EB66C
split-complementary
#2E34B6 #B66C2E #78B62E
monochromatic
#151854 #222685 #2E34B6 #4F55D2 #8084DF

Accessibility & contrast

On white

9.20
#2E34B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#2E34B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E34B6
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E34B6#FFFFFF#000000##FFFFFF
##2E34B61.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBA
Deuteranopia (green-blind)
#0041B4
Tritanopia (blue-blind)
#005971
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2e34b6;
/* rgb */ color: rgb(46, 52, 182);
/* oklch */ color: oklch(41.8% 0.199 271.9);
Tailwind
colors: {
  custom: {
    50: '#7c6ccd',
    500: '#2e34b6',
    950: '#000000',
  },
}
SCSS
$custom: #2e34b6;
$custom-light: #7c6ccd;
$custom-dark: #000000;
JSON
{
  "hex": "#2e34b6",
  "rgb": {
    "r": 46,
    "g": 52,
    "b": 182
  },
  "hsl": {
    "h": 237.353,
    "s": 59.649,
    "l": 44.706
  },
  "oklch": {
    "l": 0.41778,
    "c": 0.19929,
    "h": 271.9
  },
  "luminance": 0.06414
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E34B6

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

Preview Lab → · Contrast checker → · Palette generator →

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