#2E35A7#2E35A7

#2E35A7 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.5% C 0.179 H 272.5°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#2E35A7
RGBrgb(46, 53, 167)
HSLhsl(237, 57%, 42%)
HSVhsv(237, 72%, 65%)
CMYKcmyk(72.5%, 68.3%, 0%, 34.5%)
CIE-LABlab(29.20, 36.17, -61.89)
CIE-LCHlch(29.20, 71.68, 300.31°)
OKLaboklab(40.45% 0.0078 -0.1789)
OKLCHoklch(40.45% 0.179 272.5)
XYZxyz(9.3725, 5.9161, 37.1997)
Luminance0.0592 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E35A7 #A7A02E
analogous
#2E72A7 #2E35A7 #642EA7
triadic
#2E35A7 #A72E35 #35A72E
tetradic
#2E35A7 #A72E72 #A7A02E #2EA764
square
#2E35A7 #A72E72 #A7A02E #2EA764
split-complementary
#2E35A7 #A7642E #72A72E
monochromatic
#141747 #212677 #2E35A7 #464ECC #767CD9

Accessibility & contrast

On white

9.62
#2E35A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#2E35A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E35A7
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E35A7#FFFFFF#000000##FFFFFF
##2E35A71.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAB
Deuteranopia (green-blind)
#003FA5
Tritanopia (blue-blind)
#005469
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2e35a7;
/* rgb */ color: rgb(46, 53, 167);
/* oklch */ color: oklch(40.5% 0.179 272.5);
Tailwind
colors: {
  custom: {
    50: '#796dc2',
    500: '#2e35a7',
    950: '#000000',
  },
}
SCSS
$custom: #2e35a7;
$custom-light: #796dc2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e35a7",
  "rgb": {
    "r": 46,
    "g": 53,
    "b": 167
  },
  "hsl": {
    "h": 236.529,
    "s": 56.808,
    "l": 41.765
  },
  "oklch": {
    "l": 0.4045,
    "c": 0.17908,
    "h": 272.5
  },
  "luminance": 0.05917
}

Semantic roles & 50–950 ramp

primary
#2E35A7
secondary
#C1BC70
accent
#D748E0
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2E35A7

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

Preview Lab → · Contrast checker → · Palette generator →

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