#2E397F#2E397F

#2E397F is a dark, moderate blue. Relative luminance 0.050; OKLCH L 37.7% C 0.118 H 272.7°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#2E397F
RGBrgb(46, 57, 127)
HSLhsl(232, 47%, 34%)
HSVhsv(232, 64%, 50%)
CMYKcmyk(63.8%, 55.1%, 0%, 50.2%)
CIE-LABlab(26.85, 18.94, -41.15)
CIE-LCHlch(26.85, 45.30, 294.72°)
OKLaboklab(37.66% 0.0056 -0.118)
OKLCHoklch(37.66% 0.118 272.7)
XYZxyz(6.4193, 5.0389, 20.7089)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E397F #7F742E
analogous
#2E627F #2E397F #4C2E7F
triadic
#2E397F #7F2E39 #397F2E
tetradic
#2E397F #7F2E62 #7F742E #2E7F4C
square
#2E397F #7F2E62 #7F742E #2E7F4C
split-complementary
#2E397F #7F4C2E #627F2E
monochromatic
#0D1125 #1E2552 #2E397F #3E4DAC #616FC6

Accessibility & contrast

On white

10.46
#2E397F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#2E397F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E397F
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E397F#FFFFFF#000000##FFFFFF
##2E397F1.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C4381
Deuteranopia (green-blind)
#003C7E
Tritanopia (blue-blind)
#004956
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2e397f;
/* rgb */ color: rgb(46, 57, 127);
/* oklch */ color: oklch(37.7% 0.118 272.7);
Tailwind
colors: {
  custom: {
    50: '#706fa5',
    500: '#2e397f',
    950: '#000000',
  },
}
SCSS
$custom: #2e397f;
$custom-light: #706fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e397f",
  "rgb": {
    "r": 46,
    "g": 57,
    "b": 127
  },
  "hsl": {
    "h": 231.852,
    "s": 46.821,
    "l": 33.922
  },
  "oklch": {
    "l": 0.37662,
    "c": 0.11814,
    "h": 272.7
  },
  "luminance": 0.05039
}

Semantic roles & 50–950 ramp

primary
#2E397F
secondary
#ADA25C
accent
#C451D6
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #2E397F

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

Preview Lab → · Contrast checker → · Palette generator →

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