#2E317C#2E317C

#2E317C is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.8% C 0.125 H 276.3°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#2E317C
RGBrgb(46, 49, 124)
HSLhsl(238, 46%, 33%)
HSVhsv(238, 63%, 49%)
CMYKcmyk(62.9%, 60.5%, 0%, 51.4%)
CIE-LABlab(24.43, 23.30, -43.18)
CIE-LCHlch(24.43, 49.06, 298.35°)
OKLaboklab(35.78% 0.0138 -0.1241)
OKLCHoklch(35.78% 0.125 276.3)
XYZxyz(5.8619, 4.2323, 19.5729)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E317C #7C792E
analogous
#2E587C #2E317C #522E7C
triadic
#2E317C #7C2E31 #317C2E
tetradic
#2E317C #7C2E58 #7C792E #2E7C52
square
#2E317C #7C2E58 #7C792E #2E7C52
split-complementary
#2E317C #7C522E #587C2E
monochromatic
#0D0E23 #1D1F4F #2E317C #3F43A9 #6064C4

Accessibility & contrast

On white

11.37
#2E317C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2E317C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E317C
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E317C#FFFFFF#000000##FFFFFF
##2E317C1.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7F
Deuteranopia (green-blind)
#00377A
Tritanopia (blue-blind)
#004351
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2e317c;
/* rgb */ color: rgb(46, 49, 124);
/* oklch */ color: oklch(35.8% 0.125 276.3);
Tailwind
colors: {
  custom: {
    50: '#7069a3',
    500: '#2e317c',
    950: '#000000',
  },
}
SCSS
$custom: #2e317c;
$custom-light: #7069a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2e317c",
  "rgb": {
    "r": 46,
    "g": 49,
    "b": 124
  },
  "hsl": {
    "h": 237.692,
    "s": 45.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.35782,
    "c": 0.12483,
    "h": 276.3
  },
  "luminance": 0.04233
}

Semantic roles & 50–950 ramp

primary
#2E317C
secondary
#ABA85B
accent
#D052D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2E317C

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

Preview Lab → · Contrast checker → · Palette generator →

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