#2E4271#2E4271

#2E4271 is a dark, moderate blue. Relative luminance 0.057; OKLCH L 38.7% C 0.084 H 265.3°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#2E4271
RGBrgb(46, 66, 113)
HSLhsl(222, 42%, 31%)
HSVhsv(222, 59%, 44%)
CMYKcmyk(59.3%, 41.6%, 0%, 55.7%)
CIE-LABlab(28.56, 7.61, -29.57)
CIE-LCHlch(28.56, 30.53, 284.43°)
OKLaboklab(38.67% -0.0069 -0.0839)
OKLCHoklch(38.67% 0.084 265.3)
XYZxyz(6.0546, 5.6691, 16.3948)
Luminance0.0567 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4271 #715D2E
analogous
#2E6371 #2E4271 #3B2E71
triadic
#2E4271 #712E42 #42712E
tetradic
#2E4271 #712E63 #715D2E #2E713B
square
#2E4271 #712E63 #715D2E #2E713B
split-complementary
#2E4271 #713B2E #63712E
monochromatic
#0B0F1A #1C2946 #2E4271 #405B9C #5D79BD

Accessibility & contrast

On white

9.84
#2E4271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#2E4271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E4271
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4271#FFFFFF#000000##FFFFFF
##2E42711.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E4773
Deuteranopia (green-blind)
#264170
Tritanopia (blue-blind)
#024C54
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2e4271;
/* rgb */ color: rgb(46, 66, 113);
/* oklch */ color: oklch(38.7% 0.084 265.3);
Tailwind
colors: {
  custom: {
    50: '#6d769a',
    500: '#2e4271',
    950: '#000000',
  },
}
SCSS
$custom: #2e4271;
$custom-light: #6d769a;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4271",
  "rgb": {
    "r": 46,
    "g": 66,
    "b": 113
  },
  "hsl": {
    "h": 222.09,
    "s": 42.138,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38672,
    "c": 0.08417,
    "h": 265.3
  },
  "luminance": 0.0567
}

Semantic roles & 50–950 ramp

primary
#2E4271
secondary
#A28C58
accent
#AD56D2
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07080E
muted
#7A7B7E

Preview Lab

Preview with #2E4271

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

Preview Lab → · Contrast checker → · Palette generator →

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