#2E4790#2E4790

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

Color values

HEX#2E4790
RGBrgb(46, 71, 144)
HSLhsl(225, 52%, 37%)
HSVhsv(225, 68%, 56%)
CMYKcmyk(68.1%, 50.7%, 0%, 43.5%)
CIE-LABlab(32.03, 15.78, -43.31)
CIE-LCHlch(32.03, 46.09, 290.02°)
OKLaboklab(41.98% -0.007 -0.1242)
OKLCHoklch(41.98% 0.124 266.8)
XYZxyz(8.4123, 7.1001, 27.3073)
Luminance0.0710 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4790 #90772E
analogous
#2E7890 #2E4790 #462E90
triadic
#2E4790 #902E47 #47902E
tetradic
#2E4790 #902E78 #90772E #2E9046
square
#2E4790 #902E78 #90772E #2E9046
split-complementary
#2E4790 #90462E #78902E
monochromatic
#101933 #1F3062 #2E4790 #3D5EBE #6983CF

Accessibility & contrast

On white

8.68
#2E4790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#2E4790 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E4790
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4790#FFFFFF#000000##FFFFFF
##2E47901.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F5093
Deuteranopia (green-blind)
#02478F
Tritanopia (blue-blind)
#005864
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2e4790;
/* rgb */ color: rgb(46, 71, 144);
/* oklch */ color: oklch(42.0% 0.124 266.8);
Tailwind
colors: {
  custom: {
    50: '#7279b1',
    500: '#2e4790',
    950: '#000000',
  },
}
SCSS
$custom: #2e4790;
$custom-light: #7279b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4790",
  "rgb": {
    "r": 46,
    "g": 71,
    "b": 144
  },
  "hsl": {
    "h": 224.694,
    "s": 51.579,
    "l": 37.255
  },
  "oklch": {
    "l": 0.41975,
    "c": 0.12437,
    "h": 266.8
  },
  "luminance": 0.07101
}

Semantic roles & 50–950 ramp

primary
#2E4790
secondary
#B6A164
accent
#B74DDB
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090911
muted
#7B7B80

Preview Lab

Preview with #2E4790

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

Preview Lab → · Contrast checker → · Palette generator →

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