#2E35A2#2E35A2

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

Color values

HEX#2E35A2
RGBrgb(46, 53, 162)
HSLhsl(236, 56%, 41%)
HSVhsv(236, 72%, 64%)
CMYKcmyk(71.6%, 67.3%, 0%, 36.5%)
CIE-LABlab(28.73, 34.40, -59.63)
CIE-LCHlch(28.73, 68.84, 299.98°)
OKLaboklab(39.97% 0.0083 -0.1723)
OKLCHoklch(39.97% 0.173 272.8)
XYZxyz(8.9192, 5.7348, 34.8123)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E35A2 #A29B2E
analogous
#2E6FA2 #2E35A2 #612EA2
triadic
#2E35A2 #A22E35 #35A22E
tetradic
#2E35A2 #A22E6F #A29B2E #2EA261
square
#2E35A2 #A22E6F #A29B2E #2EA261
split-complementary
#2E35A2 #A2612E #6FA22E
monochromatic
#131643 #202572 #2E35A2 #434CCA #7379D7

Accessibility & contrast

On white

9.78
#2E35A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#2E35A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E35A2
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E35A2#FFFFFF#000000##FFFFFF
##2E35A21.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e35a2;
/* rgb */ color: rgb(46, 53, 162);
/* oklch */ color: oklch(40.0% 0.173 272.8);
Tailwind
colors: {
  custom: {
    50: '#786cbf',
    500: '#2e35a2',
    950: '#000000',
  },
}
SCSS
$custom: #2e35a2;
$custom-light: #786cbf;
$custom-dark: #000000;
JSON
{
  "hex": "#2e35a2",
  "rgb": {
    "r": 46,
    "g": 53,
    "b": 162
  },
  "hsl": {
    "h": 236.379,
    "s": 55.769,
    "l": 40.784
  },
  "oklch": {
    "l": 0.39969,
    "c": 0.17252,
    "h": 272.8
  },
  "luminance": 0.05736
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E35A2

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

Preview Lab → · Contrast checker → · Palette generator →

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