#2E4791#2E4791

#2E4791 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.0% C 0.126 H 266.9°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#2E4791
RGBrgb(46, 71, 145)
HSLhsl(225, 52%, 37%)
HSVhsv(225, 68%, 57%)
CMYKcmyk(68.3%, 51%, 0%, 43.1%)
CIE-LABlab(32.10, 16.16, -43.81)
CIE-LCHlch(32.10, 46.69, 290.25°)
OKLaboklab(42.05% -0.0069 -0.1256)
OKLCHoklch(42.05% 0.126 266.9)
XYZxyz(8.4890, 7.1308, 27.7116)
Luminance0.0713 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4791 #91782E
analogous
#2E7991 #2E4791 #462E91
triadic
#2E4791 #912E47 #47912E
tetradic
#2E4791 #912E79 #91782E #2E9146
square
#2E4791 #912E79 #91782E #2E9146
split-complementary
#2E4791 #91462E #79912E
monochromatic
#111A34 #1F3063 #2E4791 #3D5EBF #6A83D0

Accessibility & contrast

On white

8.65
#2E4791 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#2E4791 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E4791
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4791#FFFFFF#000000##FFFFFF
##2E47911.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D5094
Deuteranopia (green-blind)
#00478F
Tritanopia (blue-blind)
#005865
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2e4791;
/* rgb */ color: rgb(46, 71, 145);
/* oklch */ color: oklch(42.0% 0.126 266.9);
Tailwind
colors: {
  custom: {
    50: '#7279b2',
    500: '#2e4791',
    950: '#000000',
  },
}
SCSS
$custom: #2e4791;
$custom-light: #7279b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4791",
  "rgb": {
    "r": 46,
    "g": 71,
    "b": 145
  },
  "hsl": {
    "h": 224.848,
    "s": 51.832,
    "l": 37.451
  },
  "oklch": {
    "l": 0.4205,
    "c": 0.12583,
    "h": 266.9
  },
  "luminance": 0.07132
}

Semantic roles & 50–950 ramp

primary
#2E4791
secondary
#B7A264
accent
#B74DDB
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #2E4791

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

Preview Lab → · Contrast checker → · Palette generator →

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