#2E407E#2E407E

#2E407E is a dark, moderate blue. Relative luminance 0.058; OKLCH L 39.1% C 0.107 H 268.9°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#2E407E
RGBrgb(46, 64, 126)
HSLhsl(227, 47%, 34%)
HSVhsv(227, 63%, 49%)
CMYKcmyk(63.5%, 49.2%, 0%, 50.6%)
CIE-LABlab(28.78, 13.77, -37.40)
CIE-LCHlch(28.78, 39.86, 290.22°)
OKLaboklab(39.11% -0.0021 -0.1069)
OKLCHoklch(39.11% 0.107 268.9)
XYZxyz(6.7247, 5.7534, 20.4908)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E407E #7E6C2E
analogous
#2E687E #2E407E #442E7E
triadic
#2E407E #7E2E40 #407E2E
tetradic
#2E407E #7E2E68 #7E6C2E #2E7E44
square
#2E407E #7E2E68 #7E6C2E #2E7E44
split-complementary
#2E407E #7E442E #687E2E
monochromatic
#0D1224 #1E2951 #2E407E #3E57AB #6178C5

Accessibility & contrast

On white

9.76
#2E407E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E407E
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E407E#FFFFFF#000000##FFFFFF
##2E407E1.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214880
Deuteranopia (green-blind)
#13407D
Tritanopia (blue-blind)
#004E59
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2e407e;
/* rgb */ color: rgb(46, 64, 126);
/* oklch */ color: oklch(39.1% 0.107 268.9);
Tailwind
colors: {
  custom: {
    50: '#6f74a4',
    500: '#2e407e',
    950: '#000000',
  },
}
SCSS
$custom: #2e407e;
$custom-light: #6f74a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2e407e",
  "rgb": {
    "r": 46,
    "g": 64,
    "b": 126
  },
  "hsl": {
    "h": 226.5,
    "s": 46.512,
    "l": 33.725
  },
  "oklch": {
    "l": 0.39106,
    "c": 0.10692,
    "h": 268.9
  },
  "luminance": 0.05754
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E407E

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

Preview Lab → · Contrast checker → · Palette generator →

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