#2E396F#2E396F

#2E396F is a dark, moderate blue. Relative luminance 0.047; OKLCH L 36.5% C 0.094 H 272.3°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#2E396F
RGBrgb(46, 57, 111)
HSLhsl(230, 41%, 31%)
HSVhsv(230, 59%, 44%)
CMYKcmyk(58.6%, 48.6%, 0%, 56.5%)
CIE-LABlab(25.73, 13.05, -32.81)
CIE-LCHlch(25.73, 35.31, 291.68°)
OKLaboklab(36.46% 0.0038 -0.0935)
OKLCHoklch(36.46% 0.094 272.3)
XYZxyz(5.4581, 4.6544, 15.6466)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E396F #6F642E
analogous
#2E596F #2E396F #432E6F
triadic
#2E396F #6F2E39 #396F2E
tetradic
#2E396F #6F2E59 #6F642E #2E6F43
square
#2E396F #6F2E59 #6F642E #2E6F43
split-complementary
#2E396F #6F432E #596F2E
monochromatic
#0A0D18 #1C2344 #2E396F #404F9A #5C6CBB

Accessibility & contrast

On white

10.88
#2E396F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2E396F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E396F
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E396F#FFFFFF#000000##FFFFFF
##2E396F1.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204071
Deuteranopia (green-blind)
#183A6E
Tritanopia (blue-blind)
#09454E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2e396f;
/* rgb */ color: rgb(46, 57, 111);
/* oklch */ color: oklch(36.5% 0.094 272.3);
Tailwind
colors: {
  custom: {
    50: '#6d6f99',
    500: '#2e396f',
    950: '#000000',
  },
}
SCSS
$custom: #2e396f;
$custom-light: #6d6f99;
$custom-dark: #000000;
JSON
{
  "hex": "#2e396f",
  "rgb": {
    "r": 46,
    "g": 57,
    "b": 111
  },
  "hsl": {
    "h": 229.846,
    "s": 41.401,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36457,
    "c": 0.09359,
    "h": 272.3
  },
  "luminance": 0.04655
}

Semantic roles & 50–950 ramp

primary
#2E396F
secondary
#A09458
accent
#BC57D1
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#07070E
muted
#7A7A7E

Preview Lab

Preview with #2E396F

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

Preview Lab → · Contrast checker → · Palette generator →

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