#2E398C#2E398C

#2E398C is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.7% C 0.137 H 272.6°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#2E398C
RGBrgb(46, 57, 140)
HSLhsl(233, 51%, 36%)
HSVhsv(233, 67%, 55%)
CMYKcmyk(67.1%, 59.3%, 0%, 45.1%)
CIE-LABlab(27.84, 23.76, -47.62)
CIE-LCHlch(27.84, 53.22, 296.52°)
OKLaboklab(38.73% 0.0061 -0.1371)
OKLCHoklch(38.73% 0.137 272.6)
XYZxyz(7.3219, 5.3999, 25.4623)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E398C #8C812E
analogous
#2E688C #2E398C #522E8C
triadic
#2E398C #8C2E39 #398C2E
tetradic
#2E398C #8C2E68 #8C812E #2E8C52
square
#2E398C #8C2E68 #8C812E #2E8C52
split-complementary
#2E398C #8C522E #688C2E
monochromatic
#101330 #1F265E #2E398C #3D4CBA #6773CD

Accessibility & contrast

On white

10.10
#2E398C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#2E398C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E398C
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E398C#FFFFFF#000000##FFFFFF
##2E398C1.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468F
Deuteranopia (green-blind)
#003E8A
Tritanopia (blue-blind)
#004D5C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2e398c;
/* rgb */ color: rgb(46, 57, 140);
/* oklch */ color: oklch(38.7% 0.137 272.6);
Tailwind
colors: {
  custom: {
    50: '#726fae',
    500: '#2e398c',
    950: '#000000',
  },
}
SCSS
$custom: #2e398c;
$custom-light: #726fae;
$custom-dark: #000000;
JSON
{
  "hex": "#2e398c",
  "rgb": {
    "r": 46,
    "g": 57,
    "b": 140
  },
  "hsl": {
    "h": 232.979,
    "s": 50.538,
    "l": 36.471
  },
  "oklch": {
    "l": 0.38727,
    "c": 0.1372,
    "h": 272.6
  },
  "luminance": 0.05401
}

Semantic roles & 50–950 ramp

primary
#2E398C
secondary
#B4AA62
accent
#CA4EDA
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #2E398C

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

Preview Lab → · Contrast checker → · Palette generator →

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