#2E34A5#2E34A5

#2E34A5 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.1% C 0.178 H 272.8°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#2E34A5
RGBrgb(46, 52, 165)
HSLhsl(237, 56%, 41%)
HSVhsv(237, 72%, 65%)
CMYKcmyk(72.1%, 68.5%, 0%, 35.3%)
CIE-LABlab(28.78, 36.09, -61.37)
CIE-LCHlch(28.78, 71.20, 300.46°)
OKLaboklab(40.09% 0.0087 -0.1774)
OKLCHoklch(40.09% 0.178 272.8)
XYZxyz(9.1440, 5.7525, 36.2185)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E34A5 #A59F2E
analogous
#2E70A5 #2E34A5 #642EA5
triadic
#2E34A5 #A52E34 #34A52E
tetradic
#2E34A5 #A52E70 #A59F2E #2EA564
square
#2E34A5 #A52E70 #A59F2E #2EA564
split-complementary
#2E34A5 #A5642E #70A52E
monochromatic
#131645 #212575 #2E34A5 #454CCB #757AD8

Accessibility & contrast

On white

9.76
#2E34A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#2E34A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E34A5
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E34A5#FFFFFF#000000##FFFFFF
##2E34A51.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A8
Deuteranopia (green-blind)
#003EA3
Tritanopia (blue-blind)
#005268
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2e34a5;
/* rgb */ color: rgb(46, 52, 165);
/* oklch */ color: oklch(40.1% 0.178 272.8);
Tailwind
colors: {
  custom: {
    50: '#786cc1',
    500: '#2e34a5',
    950: '#000000',
  },
}
SCSS
$custom: #2e34a5;
$custom-light: #786cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e34a5",
  "rgb": {
    "r": 46,
    "g": 52,
    "b": 165
  },
  "hsl": {
    "h": 236.975,
    "s": 56.398,
    "l": 41.373
  },
  "oklch": {
    "l": 0.40088,
    "c": 0.17762,
    "h": 272.8
  },
  "luminance": 0.05753
}

Semantic roles & 50–950 ramp

primary
#2E34A5
secondary
#C0BC6F
accent
#D848E0
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2E34A5

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

Preview Lab → · Contrast checker → · Palette generator →

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