#2E397B#2E397B

#2E397B is a dark, moderate blue. Relative luminance 0.049; OKLCH L 37.4% C 0.112 H 272.7°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#2E397B
RGBrgb(46, 57, 123)
HSLhsl(231, 46%, 33%)
HSVhsv(231, 63%, 48%)
CMYKcmyk(62.6%, 53.7%, 0%, 51.8%)
CIE-LABlab(26.55, 17.46, -39.10)
CIE-LCHlch(26.55, 42.82, 294.06°)
OKLaboklab(37.35% 0.0053 -0.112)
OKLCHoklch(37.35% 0.112 272.7)
XYZxyz(6.1638, 4.9367, 19.3631)
Luminance0.0494 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E397B #7B702E
analogous
#2E5F7B #2E397B #4A2E7B
triadic
#2E397B #7B2E39 #397B2E
tetradic
#2E397B #7B2E5F #7B702E #2E7B4A
square
#2E397B #7B2E5F #7B702E #2E7B4A
split-complementary
#2E397B #7B4A2E #5F7B2E
monochromatic
#0D1022 #1D244E #2E397B #3F4EA8 #606EC3

Accessibility & contrast

On white

10.57
#2E397B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#2E397B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E397B
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E397B#FFFFFF#000000##FFFFFF
##2E397B1.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13427D
Deuteranopia (green-blind)
#003C7A
Tritanopia (blue-blind)
#004854
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2e397b;
/* rgb */ color: rgb(46, 57, 123);
/* oklch */ color: oklch(37.4% 0.112 272.7);
Tailwind
colors: {
  custom: {
    50: '#6f6fa2',
    500: '#2e397b',
    950: '#000000',
  },
}
SCSS
$custom: #2e397b;
$custom-light: #6f6fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e397b",
  "rgb": {
    "r": 46,
    "g": 57,
    "b": 123
  },
  "hsl": {
    "h": 231.429,
    "s": 45.562,
    "l": 33.137
  },
  "oklch": {
    "l": 0.3735,
    "c": 0.11211,
    "h": 272.7
  },
  "luminance": 0.04937
}

Semantic roles & 50–950 ramp

primary
#2E397B
secondary
#AA9F5B
accent
#C353D5
background
#F7F6FA
surface
#EDECF3
border
#C8C7CD
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #2E397B

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

Preview Lab → · Contrast checker → · Palette generator →

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