#2E34A1#2E34A1

#2E34A1 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.7% C 0.172 H 273.0°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#2E34A1
RGBrgb(46, 52, 161)
HSLhsl(237, 56%, 41%)
HSVhsv(237, 71%, 63%)
CMYKcmyk(71.4%, 67.7%, 0%, 36.9%)
CIE-LABlab(28.40, 34.67, -59.57)
CIE-LCHlch(28.40, 68.92, 300.20°)
OKLaboklab(39.7% 0.0091 -0.1721)
OKLCHoklch(39.7% 0.172 273)
XYZxyz(8.7856, 5.6092, 34.3310)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E34A1 #A19B2E
analogous
#2E6DA1 #2E34A1 #622EA1
triadic
#2E34A1 #A12E34 #34A12E
tetradic
#2E34A1 #A12E6D #A19B2E #2EA162
square
#2E34A1 #A12E6D #A19B2E #2EA162
split-complementary
#2E34A1 #A1622E #6DA12E
monochromatic
#131542 #202571 #2E34A1 #434AC9 #7378D7

Accessibility & contrast

On white

9.90
#2E34A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#2E34A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E34A1
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E34A1#FFFFFF#000000##FFFFFF
##2E34A11.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A4
Deuteranopia (green-blind)
#003E9F
Tritanopia (blue-blind)
#005166
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2e34a1;
/* rgb */ color: rgb(46, 52, 161);
/* oklch */ color: oklch(39.7% 0.172 273.0);
Tailwind
colors: {
  custom: {
    50: '#776cbe',
    500: '#2e34a1',
    950: '#000000',
  },
}
SCSS
$custom: #2e34a1;
$custom-light: #776cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#2e34a1",
  "rgb": {
    "r": 46,
    "g": 52,
    "b": 161
  },
  "hsl": {
    "h": 236.87,
    "s": 55.556,
    "l": 40.588
  },
  "oklch": {
    "l": 0.39701,
    "c": 0.17237,
    "h": 273
  },
  "luminance": 0.0561
}

Semantic roles & 50–950 ramp

primary
#2E34A1
secondary
#BEBA6C
accent
#D749DF
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2E34A1

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

Preview Lab → · Contrast checker → · Palette generator →

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