#2E407A#2E407A

#2E407A is a dark, moderate blue. Relative luminance 0.057; OKLCH L 38.8% C 0.101 H 268.4°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#2E407A
RGBrgb(46, 64, 122)
HSLhsl(226, 45%, 33%)
HSVhsv(226, 62%, 48%)
CMYKcmyk(62.3%, 47.5%, 0%, 52.2%)
CIE-LABlab(28.52, 12.29, -35.32)
CIE-LCHlch(28.52, 37.39, 289.18°)
OKLaboklab(38.82% -0.0027 -0.1008)
OKLCHoklch(38.82% 0.101 268.4)
XYZxyz(6.4718, 5.6522, 19.1585)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E407A #7A682E
analogous
#2E667A #2E407A #422E7A
triadic
#2E407A #7A2E40 #407A2E
tetradic
#2E407A #7A2E66 #7A682E #2E7A42
square
#2E407A #7A2E66 #7A682E #2E7A42
split-complementary
#2E407A #7A422E #667A2E
monochromatic
#0C1121 #1D294E #2E407A #3F57A6 #6077C3

Accessibility & contrast

On white

9.86
#2E407A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E407A
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E407A#FFFFFF#000000##FFFFFF
##2E407A1.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25477C
Deuteranopia (green-blind)
#194079
Tritanopia (blue-blind)
#004D57
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2e407a;
/* rgb */ color: rgb(46, 64, 122);
/* oklch */ color: oklch(38.8% 0.101 268.4);
Tailwind
colors: {
  custom: {
    50: '#6e74a1',
    500: '#2e407a',
    950: '#000000',
  },
}
SCSS
$custom: #2e407a;
$custom-light: #6e74a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e407a",
  "rgb": {
    "r": 46,
    "g": 64,
    "b": 122
  },
  "hsl": {
    "h": 225.789,
    "s": 45.238,
    "l": 32.941
  },
  "oklch": {
    "l": 0.38819,
    "c": 0.10081,
    "h": 268.4
  },
  "luminance": 0.05653
}

Semantic roles & 50–950 ramp

primary
#2E407A
secondary
#AA975A
accent
#B653D5
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#08080F
muted
#7B7B7E

Preview Lab

Preview with #2E407A

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

Preview Lab → · Contrast checker → · Palette generator →

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