#2E4796#2E4796

#2E4796 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.4% C 0.133 H 267.3°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#2E4796
RGBrgb(46, 71, 150)
HSLhsl(226, 53%, 38%)
HSVhsv(226, 69%, 59%)
CMYKcmyk(69.3%, 52.7%, 0%, 41.2%)
CIE-LABlab(32.45, 18.05, -46.29)
CIE-LCHlch(32.45, 49.68, 291.30°)
OKLaboklab(42.43% -0.0063 -0.1329)
OKLCHoklch(42.43% 0.133 267.3)
XYZxyz(8.8831, 7.2885, 29.7869)
Luminance0.0729 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4796 #967D2E
analogous
#2E7B96 #2E4796 #492E96
triadic
#2E4796 #962E47 #47962E
tetradic
#2E4796 #962E7B #967D2E #2E9649
square
#2E4796 #962E7B #967D2E #2E9649
split-complementary
#2E4796 #96492E #7B962E
monochromatic
#111B38 #203167 #2E4796 #3E5EC4 #6C85D2

Accessibility & contrast

On white

8.54
#2E4796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#2E4796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E4796
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4796#FFFFFF#000000##FFFFFF
##2E47961.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#165199
Deuteranopia (green-blind)
#004894
Tritanopia (blue-blind)
#005A67
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2e4796;
/* rgb */ color: rgb(46, 71, 150);
/* oklch */ color: oklch(42.4% 0.133 267.3);
Tailwind
colors: {
  custom: {
    50: '#7479b5',
    500: '#2e4796',
    950: '#000000',
  },
}
SCSS
$custom: #2e4796;
$custom-light: #7479b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4796",
  "rgb": {
    "r": 46,
    "g": 71,
    "b": 150
  },
  "hsl": {
    "h": 225.577,
    "s": 53.061,
    "l": 38.431
  },
  "oklch": {
    "l": 0.42429,
    "c": 0.13309,
    "h": 267.3
  },
  "luminance": 0.07289
}

Semantic roles & 50–950 ramp

primary
#2E4796
secondary
#B9A567
accent
#BA4BDC
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #2E4796

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

Preview Lab → · Contrast checker → · Palette generator →

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