#2E389D#2E389D

#2E389D is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.0% C 0.162 H 272.3°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#2E389D
RGBrgb(46, 56, 157)
HSLhsl(235, 55%, 40%)
HSVhsv(235, 71%, 62%)
CMYKcmyk(70.7%, 64.3%, 0%, 38.4%)
CIE-LABlab(29.01, 30.67, -56.14)
CIE-LCHlch(29.01, 63.97, 298.64°)
OKLaboklab(40.03% 0.0066 -0.1621)
OKLCHoklch(40.03% 0.162 272.3)
XYZxyz(8.6246, 5.8427, 32.5650)
Luminance0.0584 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E389D #9D932E
analogous
#2E6F9D #2E389D #5C2E9D
triadic
#2E389D #9D2E38 #389D2E
tetradic
#2E389D #9D2E6F #9D932E #2E9D5C
square
#2E389D #9D2E6F #9D932E #2E9D5C
split-complementary
#2E389D #9D5C2E #6F9D2E
monochromatic
#12163E #20276E #2E389D #414DC7 #7079D5

Accessibility & contrast

On white

9.68
#2E389D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#2E389D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E389D
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E389D#FFFFFF#000000##FFFFFF
##2E389D1.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA0
Deuteranopia (green-blind)
#003F9B
Tritanopia (blue-blind)
#005265
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2e389d;
/* rgb */ color: rgb(46, 56, 157);
/* oklch */ color: oklch(40.0% 0.162 272.3);
Tailwind
colors: {
  custom: {
    50: '#766ebb',
    500: '#2e389d',
    950: '#000000',
  },
}
SCSS
$custom: #2e389d;
$custom-light: #766ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#2e389d",
  "rgb": {
    "r": 46,
    "g": 56,
    "b": 157
  },
  "hsl": {
    "h": 234.595,
    "s": 54.68,
    "l": 39.804
  },
  "oklch": {
    "l": 0.40034,
    "c": 0.16222,
    "h": 272.3
  },
  "luminance": 0.05844
}

Semantic roles & 50–950 ramp

primary
#2E389D
secondary
#BDB56A
accent
#D14ADE
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2E389D

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

Preview Lab → · Contrast checker → · Palette generator →

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