#2E407D#2E407D

#2E407D is a dark, moderate blue. Relative luminance 0.057; OKLCH L 39.0% C 0.105 H 268.8°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#2E407D
RGBrgb(46, 64, 125)
HSLhsl(226, 46%, 34%)
HSVhsv(226, 63%, 49%)
CMYKcmyk(63.2%, 48.8%, 0%, 51%)
CIE-LABlab(28.71, 13.40, -36.88)
CIE-LCHlch(28.71, 39.24, 289.97°)
OKLaboklab(39.03% -0.0022 -0.1054)
OKLCHoklch(39.03% 0.105 268.8)
XYZxyz(6.6605, 5.7277, 20.1526)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E407D #7D6B2E
analogous
#2E677D #2E407D #432E7D
triadic
#2E407D #7D2E40 #407D2E
tetradic
#2E407D #7D2E67 #7D6B2E #2E7D43
square
#2E407D #7D2E67 #7D6B2E #2E7D43
split-complementary
#2E407D #7D432E #677D2E
monochromatic
#0D1224 #1E2950 #2E407D #3E57AA #6177C5

Accessibility & contrast

On white

9.79
#2E407D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#2E407D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E407D
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E407D#FFFFFF#000000##FFFFFF
##2E407D1.009.792.159.79
#FFFFFF9.791.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22477F
Deuteranopia (green-blind)
#15407C
Tritanopia (blue-blind)
#004E58
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2e407d;
/* rgb */ color: rgb(46, 64, 125);
/* oklch */ color: oklch(39.0% 0.105 268.8);
Tailwind
colors: {
  custom: {
    50: '#6f74a3',
    500: '#2e407d',
    950: '#000000',
  },
}
SCSS
$custom: #2e407d;
$custom-light: #6f74a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2e407d",
  "rgb": {
    "r": 46,
    "g": 64,
    "b": 125
  },
  "hsl": {
    "h": 226.329,
    "s": 46.199,
    "l": 33.529
  },
  "oklch": {
    "l": 0.39033,
    "c": 0.10539,
    "h": 268.8
  },
  "luminance": 0.05728
}

Semantic roles & 50–950 ramp

primary
#2E407D
secondary
#AB995B
accent
#B852D6
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2E407D

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

Preview Lab → · Contrast checker → · Palette generator →

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