#2E34A3#2E34A3

#2E34A3 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.9% C 0.175 H 272.9°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#2E34A3
RGBrgb(46, 52, 163)
HSLhsl(237, 56%, 41%)
HSVhsv(237, 72%, 64%)
CMYKcmyk(71.8%, 68.1%, 0%, 36.1%)
CIE-LABlab(28.59, 35.38, -60.47)
CIE-LCHlch(28.59, 70.06, 300.33°)
OKLaboklab(39.89% 0.0089 -0.1748)
OKLCHoklch(39.89% 0.175 272.9)
XYZxyz(8.9633, 5.6803, 35.2673)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E34A3 #A39D2E
analogous
#2E6EA3 #2E34A3 #622EA3
triadic
#2E34A3 #A32E34 #34A32E
tetradic
#2E34A3 #A32E6E #A39D2E #2EA362
square
#2E34A3 #A32E6E #A39D2E #2EA362
split-complementary
#2E34A3 #A3622E #6EA32E
monochromatic
#131644 #212573 #2E34A3 #444BCA #7479D8

Accessibility & contrast

On white

9.83
#2E34A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#2E34A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E34A3
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E34A3#FFFFFF#000000##FFFFFF
##2E34A31.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A6
Deuteranopia (green-blind)
#003EA1
Tritanopia (blue-blind)
#005267
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2e34a3;
/* rgb */ color: rgb(46, 52, 163);
/* oklch */ color: oklch(39.9% 0.175 272.9);
Tailwind
colors: {
  custom: {
    50: '#786cbf',
    500: '#2e34a3',
    950: '#000000',
  },
}
SCSS
$custom: #2e34a3;
$custom-light: #786cbf;
$custom-dark: #000000;
JSON
{
  "hex": "#2e34a3",
  "rgb": {
    "r": 46,
    "g": 52,
    "b": 163
  },
  "hsl": {
    "h": 236.923,
    "s": 55.981,
    "l": 40.98
  },
  "oklch": {
    "l": 0.39894,
    "c": 0.175,
    "h": 272.9
  },
  "luminance": 0.05681
}

Semantic roles & 50–950 ramp

primary
#2E34A3
secondary
#BFBB6D
accent
#D849DF
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2E34A3

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

Preview Lab → · Contrast checker → · Palette generator →

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