#2E35A1#2E35A1

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

Color values

HEX#2E35A1
RGBrgb(46, 53, 161)
HSLhsl(236, 56%, 41%)
HSVhsv(236, 71%, 63%)
CMYKcmyk(71.4%, 67.1%, 0%, 36.9%)
CIE-LABlab(28.64, 34.04, -59.18)
CIE-LCHlch(28.64, 68.27, 299.91°)
OKLaboklab(39.87% 0.0084 -0.171)
OKLCHoklch(39.87% 0.171 272.8)
XYZxyz(8.8307, 5.6994, 34.3460)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E35A1 #A19A2E
analogous
#2E6EA1 #2E35A1 #602EA1
triadic
#2E35A1 #A12E35 #35A12E
tetradic
#2E35A1 #A12E6E #A19A2E #2EA160
square
#2E35A1 #A12E6E #A19A2E #2EA160
split-complementary
#2E35A1 #A1602E #6EA12E
monochromatic
#131642 #202571 #2E35A1 #434BC9 #7379D7

Accessibility & contrast

On white

9.81
#2E35A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E35A1
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E35A1#FFFFFF#000000##FFFFFF
##2E35A11.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A4
Deuteranopia (green-blind)
#003E9F
Tritanopia (blue-blind)
#005266
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2e35a1;
/* rgb */ color: rgb(46, 53, 161);
/* oklch */ color: oklch(39.9% 0.171 272.8);
Tailwind
colors: {
  custom: {
    50: '#776cbe',
    500: '#2e35a1',
    950: '#000000',
  },
}
SCSS
$custom: #2e35a1;
$custom-light: #776cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#2e35a1",
  "rgb": {
    "r": 46,
    "g": 53,
    "b": 161
  },
  "hsl": {
    "h": 236.348,
    "s": 55.556,
    "l": 40.588
  },
  "oklch": {
    "l": 0.39873,
    "c": 0.1712,
    "h": 272.8
  },
  "luminance": 0.057
}

Semantic roles & 50–950 ramp

primary
#2E35A1
secondary
#BEB96C
accent
#D649DF
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2E35A1

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

Preview Lab → · Contrast checker → · Palette generator →

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