#2E4181#2E4181

#2E4181 is a dark, moderate blue. Relative luminance 0.059; OKLCH L 39.5% C 0.110 H 268.6°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#2E4181
RGBrgb(46, 65, 129)
HSLhsl(226, 47%, 34%)
HSVhsv(226, 64%, 51%)
CMYKcmyk(64.3%, 49.6%, 0%, 49.4%)
CIE-LABlab(29.28, 14.21, -38.48)
CIE-LCHlch(29.28, 41.02, 290.27°)
OKLaboklab(39.55% -0.0028 -0.1101)
OKLCHoklch(39.55% 0.11 268.6)
XYZxyz(6.9781, 5.9458, 21.5445)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4181 #816E2E
analogous
#2E6B81 #2E4181 #452E81
triadic
#2E4181 #812E41 #41812E
tetradic
#2E4181 #812E6B #816E2E #2E8145
square
#2E4181 #812E6B #816E2E #2E8145
split-complementary
#2E4181 #81452E #6B812E
monochromatic
#0E1427 #1E2A54 #2E4181 #3E58AE #6279C7

Accessibility & contrast

On white

9.59
#2E4181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#2E4181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E4181
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4181#FFFFFF#000000##FFFFFF
##2E41811.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214983
Deuteranopia (green-blind)
#114180
Tritanopia (blue-blind)
#00505A
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2e4181;
/* rgb */ color: rgb(46, 65, 129);
/* oklch */ color: oklch(39.5% 0.110 268.6);
Tailwind
colors: {
  custom: {
    50: '#7075a6',
    500: '#2e4181',
    950: '#000000',
  },
}
SCSS
$custom: #2e4181;
$custom-light: #7075a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4181",
  "rgb": {
    "r": 46,
    "g": 65,
    "b": 129
  },
  "hsl": {
    "h": 226.265,
    "s": 47.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.39547,
    "c": 0.11009,
    "h": 268.6
  },
  "luminance": 0.05946
}

Semantic roles & 50–950 ramp

primary
#2E4181
secondary
#AE9B5D
accent
#B851D7
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2E4181

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

Preview Lab → · Contrast checker → · Palette generator →

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