#2E35A6#2E35A6

#2E35A6 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.4% C 0.178 H 272.6°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#2E35A6
RGBrgb(46, 53, 166)
HSLhsl(237, 57%, 42%)
HSVhsv(237, 72%, 65%)
CMYKcmyk(72.3%, 68.1%, 0%, 34.9%)
CIE-LABlab(29.11, 35.82, -61.44)
CIE-LCHlch(29.11, 71.12, 300.24°)
OKLaboklab(40.35% 0.0079 -0.1776)
OKLCHoklch(40.35% 0.178 272.6)
XYZxyz(9.2804, 5.8793, 36.7147)
Luminance0.0588 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E35A6 #A69F2E
analogous
#2E71A6 #2E35A6 #632EA6
triadic
#2E35A6 #A62E35 #35A62E
tetradic
#2E35A6 #A62E71 #A69F2E #2EA663
square
#2E35A6 #A62E71 #A69F2E #2EA663
split-complementary
#2E35A6 #A6632E #71A62E
monochromatic
#131646 #212676 #2E35A6 #464DCC #767BD9

Accessibility & contrast

On white

9.65
#2E35A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E35A6
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E35A6#FFFFFF#000000##FFFFFF
##2E35A61.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA9
Deuteranopia (green-blind)
#003FA4
Tritanopia (blue-blind)
#005369
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2e35a6;
/* rgb */ color: rgb(46, 53, 166);
/* oklch */ color: oklch(40.4% 0.178 272.6);
Tailwind
colors: {
  custom: {
    50: '#796dc1',
    500: '#2e35a6',
    950: '#000000',
  },
}
SCSS
$custom: #2e35a6;
$custom-light: #796dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e35a6",
  "rgb": {
    "r": 46,
    "g": 53,
    "b": 166
  },
  "hsl": {
    "h": 236.5,
    "s": 56.604,
    "l": 41.569
  },
  "oklch": {
    "l": 0.40353,
    "c": 0.17778,
    "h": 272.6
  },
  "luminance": 0.0588
}

Semantic roles & 50–950 ramp

primary
#2E35A6
secondary
#C1BC6F
accent
#D748E0
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2E35A6

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

Preview Lab → · Contrast checker → · Palette generator →

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