#2E397A#2E397A

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

Color values

HEX#2E397A
RGBrgb(46, 57, 122)
HSLhsl(231, 45%, 33%)
HSVhsv(231, 62%, 48%)
CMYKcmyk(62.3%, 53.3%, 0%, 52.2%)
CIE-LABlab(26.48, 17.09, -38.59)
CIE-LCHlch(26.48, 42.20, 293.89°)
OKLaboklab(37.27% 0.0052 -0.1105)
OKLCHoklch(37.27% 0.111 272.7)
XYZxyz(6.1015, 4.9118, 19.0351)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E397A #7A6F2E
analogous
#2E5F7A #2E397A #492E7A
triadic
#2E397A #7A2E39 #397A2E
tetradic
#2E397A #7A2E5F #7A6F2E #2E7A49
square
#2E397A #7A2E5F #7A6F2E #2E7A49
split-complementary
#2E397A #7A492E #5F7A2E
monochromatic
#0C0F21 #1D244E #2E397A #3F4EA6 #606EC3

Accessibility & contrast

On white

10.59
#2E397A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#2E397A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E397A
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E397A#FFFFFF#000000##FFFFFF
##2E397A1.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15427C
Deuteranopia (green-blind)
#033B79
Tritanopia (blue-blind)
#004853
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2e397a;
/* rgb */ color: rgb(46, 57, 122);
/* oklch */ color: oklch(37.3% 0.111 272.7);
Tailwind
colors: {
  custom: {
    50: '#6f6fa1',
    500: '#2e397a',
    950: '#000000',
  },
}
SCSS
$custom: #2e397a;
$custom-light: #6f6fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e397a",
  "rgb": {
    "r": 46,
    "g": 57,
    "b": 122
  },
  "hsl": {
    "h": 231.316,
    "s": 45.238,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37273,
    "c": 0.11059,
    "h": 272.7
  },
  "luminance": 0.04912
}

Semantic roles & 50–950 ramp

primary
#2E397A
secondary
#AA9E5A
accent
#C253D5
background
#F7F6F9
surface
#EDECF2
border
#C8C7CC
text
#08070F
muted
#7B7A7E

Preview Lab

Preview with #2E397A

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

Preview Lab → · Contrast checker → · Palette generator →

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