#2E35A5#2E35A5

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

Color values

HEX#2E35A5
RGBrgb(46, 53, 165)
HSLhsl(236, 56%, 41%)
HSVhsv(236, 72%, 65%)
CMYKcmyk(72.1%, 67.9%, 0%, 35.3%)
CIE-LABlab(29.01, 35.46, -60.99)
CIE-LCHlch(29.01, 70.55, 300.18°)
OKLaboklab(40.26% 0.008 -0.1763)
OKLCHoklch(40.26% 0.176 272.6)
XYZxyz(9.1891, 5.8427, 36.2335)
Luminance0.0584 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E35A5 #A59E2E
analogous
#2E71A5 #2E35A5 #632EA5
triadic
#2E35A5 #A52E35 #35A52E
tetradic
#2E35A5 #A52E71 #A59E2E #2EA563
square
#2E35A5 #A52E71 #A59E2E #2EA563
split-complementary
#2E35A5 #A5632E #71A52E
monochromatic
#131645 #212675 #2E35A5 #454DCB #757BD8

Accessibility & contrast

On white

9.68
#2E35A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E35A5
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E35A5#FFFFFF#000000##FFFFFF
##2E35A51.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA8
Deuteranopia (green-blind)
#003FA3
Tritanopia (blue-blind)
#005368
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2e35a5;
/* rgb */ color: rgb(46, 53, 165);
/* oklch */ color: oklch(40.3% 0.176 272.6);
Tailwind
colors: {
  custom: {
    50: '#786cc1',
    500: '#2e35a5',
    950: '#000000',
  },
}
SCSS
$custom: #2e35a5;
$custom-light: #786cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e35a5",
  "rgb": {
    "r": 46,
    "g": 53,
    "b": 165
  },
  "hsl": {
    "h": 236.471,
    "s": 56.398,
    "l": 41.373
  },
  "oklch": {
    "l": 0.40257,
    "c": 0.17647,
    "h": 272.6
  },
  "luminance": 0.05844
}

Semantic roles & 50–950 ramp

primary
#2E35A5
secondary
#C0BB6F
accent
#D748E0
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2E35A5

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

Preview Lab → · Contrast checker → · Palette generator →

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