#2E2EA7#2E2EA7

#2E2EA7 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.3% C 0.187 H 273.7°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#2E2EA7
RGBrgb(46, 46, 167)
HSLhsl(240, 57%, 42%)
HSVhsv(240, 72%, 65%)
CMYKcmyk(72.5%, 72.5%, 0%, 34.5%)
CIE-LABlab(27.64, 40.44, -64.45)
CIE-LCHlch(27.64, 76.09, 302.11°)
OKLaboklab(39.33% 0.012 -0.1864)
OKLCHoklch(39.33% 0.187 273.7)
XYZxyz(9.0764, 5.3240, 37.1010)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2EA7 #A7A72E
analogous
#2E6BA7 #2E2EA7 #6B2EA7
triadic
#2E2EA7 #A72E2E #2EA72E
tetradic
#2E2EA7 #A72E6B #A7A72E #2EA76B
square
#2E2EA7 #A72E6B #A7A72E #2EA76B
split-complementary
#2E2EA7 #A76B2E #6BA72E
monochromatic
#141447 #212177 #2E2EA7 #4646CC #7676D9

Accessibility & contrast

On white

10.17
#2E2EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#2E2EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2EA7
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2EA7#FFFFFF#000000##FFFFFF
##2E2EA71.0010.172.0710.17
#FFFFFF10.171.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AB
Deuteranopia (green-blind)
#003BA5
Tritanopia (blue-blind)
#005067
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2e2ea7;
/* rgb */ color: rgb(46, 46, 167);
/* oklch */ color: oklch(39.3% 0.187 273.7);
Tailwind
colors: {
  custom: {
    50: '#7968c2',
    500: '#2e2ea7',
    950: '#000000',
  },
}
SCSS
$custom: #2e2ea7;
$custom-light: #7968c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2ea7",
  "rgb": {
    "r": 46,
    "g": 46,
    "b": 167
  },
  "hsl": {
    "h": 240,
    "s": 56.808,
    "l": 41.765
  },
  "oklch": {
    "l": 0.39326,
    "c": 0.18679,
    "h": 273.7
  },
  "luminance": 0.05325
}

Semantic roles & 50–950 ramp

primary
#2E2EA7
secondary
#C1C170
accent
#E048E0
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2E2EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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