#2E317F#2E317F

#2E317F is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.0% C 0.129 H 276.1°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#2E317F
RGBrgb(46, 49, 127)
HSLhsl(238, 47%, 34%)
HSVhsv(238, 64%, 50%)
CMYKcmyk(63.8%, 61.4%, 0%, 50.2%)
CIE-LABlab(24.67, 24.39, -44.67)
CIE-LCHlch(24.67, 50.90, 298.63°)
OKLaboklab(36.04% 0.0137 -0.1285)
OKLCHoklch(36.04% 0.129 276.1)
XYZxyz(6.0545, 4.3093, 20.5873)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E317F #7F7C2E
analogous
#2E5A7F #2E317F #542E7F
triadic
#2E317F #7F2E31 #317F2E
tetradic
#2E317F #7F2E5A #7F7C2E #2E7F54
square
#2E317F #7F2E5A #7F7C2E #2E7F54
split-complementary
#2E317F #7F542E #5A7F2E
monochromatic
#0D0E25 #1E2052 #2E317F #3E42AC #6165C6

Accessibility & contrast

On white

11.28
#2E317F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2E317F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E317F
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E317F#FFFFFF#000000##FFFFFF
##2E317F1.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E82
Deuteranopia (green-blind)
#00377D
Tritanopia (blue-blind)
#004453
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2e317f;
/* rgb */ color: rgb(46, 49, 127);
/* oklch */ color: oklch(36.0% 0.129 276.1);
Tailwind
colors: {
  custom: {
    50: '#7069a5',
    500: '#2e317f',
    950: '#000000',
  },
}
SCSS
$custom: #2e317f;
$custom-light: #7069a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e317f",
  "rgb": {
    "r": 46,
    "g": 49,
    "b": 127
  },
  "hsl": {
    "h": 237.778,
    "s": 46.821,
    "l": 33.922
  },
  "oklch": {
    "l": 0.36039,
    "c": 0.1292,
    "h": 276.1
  },
  "luminance": 0.0431
}

Semantic roles & 50–950 ramp

primary
#2E317F
secondary
#ADAA5C
accent
#D251D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2E317F

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

Preview Lab → · Contrast checker → · Palette generator →

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