#2E389E#2E389E

#2E389E is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.1% C 0.164 H 272.3°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#2E389E
RGBrgb(46, 56, 158)
HSLhsl(235, 55%, 40%)
HSVhsv(235, 71%, 62%)
CMYKcmyk(70.9%, 64.6%, 0%, 38%)
CIE-LABlab(29.10, 31.03, -56.61)
CIE-LCHlch(29.10, 64.55, 298.73°)
OKLaboklab(40.13% 0.0065 -0.1635)
OKLCHoklch(40.13% 0.164 272.3)
XYZxyz(8.7104, 5.8770, 33.0164)
Luminance0.0588 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E389E #9E942E
analogous
#2E709E #2E389E #5C2E9E
triadic
#2E389E #9E2E38 #389E2E
tetradic
#2E389E #9E2E70 #9E942E #2E9E5C
square
#2E389E #9E2E70 #9E942E #2E9E5C
split-complementary
#2E389E #9E5C2E #709E2E
monochromatic
#12163F #20276F #2E389E #414DC8 #717AD6

Accessibility & contrast

On white

9.65
#2E389E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#2E389E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E389E
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E389E#FFFFFF#000000##FFFFFF
##2E389E1.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA1
Deuteranopia (green-blind)
#003F9C
Tritanopia (blue-blind)
#005265
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2e389e;
/* rgb */ color: rgb(46, 56, 158);
/* oklch */ color: oklch(40.1% 0.164 272.3);
Tailwind
colors: {
  custom: {
    50: '#766ebc',
    500: '#2e389e',
    950: '#000000',
  },
}
SCSS
$custom: #2e389e;
$custom-light: #766ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#2e389e",
  "rgb": {
    "r": 46,
    "g": 56,
    "b": 158
  },
  "hsl": {
    "h": 234.643,
    "s": 54.902,
    "l": 40
  },
  "oklch": {
    "l": 0.40125,
    "c": 0.16358,
    "h": 272.3
  },
  "luminance": 0.05878
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E389E

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

Preview Lab → · Contrast checker → · Palette generator →

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