#2E34A2#2E34A2

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

Color values

HEX#2E34A2
RGBrgb(46, 52, 162)
HSLhsl(237, 56%, 41%)
HSVhsv(237, 72%, 64%)
CMYKcmyk(71.6%, 67.9%, 0%, 36.5%)
CIE-LABlab(28.50, 35.03, -60.02)
CIE-LCHlch(28.50, 69.49, 300.27°)
OKLaboklab(39.8% 0.009 -0.1735)
OKLCHoklch(39.8% 0.174 273)
XYZxyz(8.8741, 5.6446, 34.7973)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E34A2 #A29C2E
analogous
#2E6EA2 #2E34A2 #622EA2
triadic
#2E34A2 #A22E34 #34A22E
tetradic
#2E34A2 #A22E6E #A29C2E #2EA262
square
#2E34A2 #A22E6E #A29C2E #2EA262
split-complementary
#2E34A2 #A2622E #6EA22E
monochromatic
#131543 #202572 #2E34A2 #434ACA #7378D7

Accessibility & contrast

On white

9.86
#2E34A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#2E34A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E34A2
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E34A2#FFFFFF#000000##FFFFFF
##2E34A21.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A5
Deuteranopia (green-blind)
#003EA0
Tritanopia (blue-blind)
#005166
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2e34a2;
/* rgb */ color: rgb(46, 52, 162);
/* oklch */ color: oklch(39.8% 0.174 273.0);
Tailwind
colors: {
  custom: {
    50: '#786cbf',
    500: '#2e34a2',
    950: '#000000',
  },
}
SCSS
$custom: #2e34a2;
$custom-light: #786cbf;
$custom-dark: #000000;
JSON
{
  "hex": "#2e34a2",
  "rgb": {
    "r": 46,
    "g": 52,
    "b": 162
  },
  "hsl": {
    "h": 236.897,
    "s": 55.769,
    "l": 40.784
  },
  "oklch": {
    "l": 0.39797,
    "c": 0.17369,
    "h": 273
  },
  "luminance": 0.05645
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E34A2

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

Preview Lab → · Contrast checker → · Palette generator →

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