#2E34A7#2E34A7

#2E34A7 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.3% C 0.180 H 272.7°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#2E34A7
RGBrgb(46, 52, 167)
HSLhsl(237, 57%, 42%)
HSVhsv(237, 72%, 65%)
CMYKcmyk(72.5%, 68.9%, 0%, 34.5%)
CIE-LABlab(28.97, 36.80, -62.26)
CIE-LCHlch(28.97, 72.32, 300.58°)
OKLaboklab(40.28% 0.0084 -0.18)
OKLCHoklch(40.28% 0.18 272.7)
XYZxyz(9.3274, 5.8259, 37.1847)
Luminance0.0583 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E34A7 #A7A12E
analogous
#2E71A7 #2E34A7 #652EA7
triadic
#2E34A7 #A72E34 #34A72E
tetradic
#2E34A7 #A72E71 #A7A12E #2EA765
square
#2E34A7 #A72E71 #A7A12E #2EA765
split-complementary
#2E34A7 #A7652E #71A72E
monochromatic
#141647 #212577 #2E34A7 #464DCC #767BD9

Accessibility & contrast

On white

9.70
#2E34A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#2E34A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E34A7
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E34A7#FFFFFF#000000##FFFFFF
##2E34A71.009.702.179.70
#FFFFFF9.701.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAB
Deuteranopia (green-blind)
#003FA5
Tritanopia (blue-blind)
#005369
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2e34a7;
/* rgb */ color: rgb(46, 52, 167);
/* oklch */ color: oklch(40.3% 0.180 272.7);
Tailwind
colors: {
  custom: {
    50: '#796cc2',
    500: '#2e34a7',
    950: '#000000',
  },
}
SCSS
$custom: #2e34a7;
$custom-light: #796cc2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e34a7",
  "rgb": {
    "r": 46,
    "g": 52,
    "b": 167
  },
  "hsl": {
    "h": 237.025,
    "s": 56.808,
    "l": 41.765
  },
  "oklch": {
    "l": 0.40283,
    "c": 0.18022,
    "h": 272.7
  },
  "luminance": 0.05827
}

Semantic roles & 50–950 ramp

primary
#2E34A7
secondary
#C1BD70
accent
#D948E0
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2E34A7

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

Preview Lab → · Contrast checker → · Palette generator →

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