#2E317B#2E317B

#2E317B is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.7% C 0.123 H 276.4°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#2E317B
RGBrgb(46, 49, 123)
HSLhsl(238, 46%, 33%)
HSVhsv(238, 63%, 48%)
CMYKcmyk(62.6%, 60.2%, 0%, 51.8%)
CIE-LABlab(24.34, 22.94, -42.67)
CIE-LCHlch(24.34, 48.45, 298.26°)
OKLaboklab(35.7% 0.0138 -0.1226)
OKLCHoklch(35.7% 0.123 276.4)
XYZxyz(5.7990, 4.2071, 19.2415)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E317B #7B782E
analogous
#2E577B #2E317B #512E7B
triadic
#2E317B #7B2E31 #317B2E
tetradic
#2E317B #7B2E57 #7B782E #2E7B51
square
#2E317B #7B2E57 #7B782E #2E7B51
split-complementary
#2E317B #7B512E #577B2E
monochromatic
#0D0E22 #1D1F4E #2E317B #3F43A8 #6064C3

Accessibility & contrast

On white

11.40
#2E317B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2E317B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E317B
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E317B#FFFFFF#000000##FFFFFF
##2E317B1.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7D
Deuteranopia (green-blind)
#003779
Tritanopia (blue-blind)
#004351
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2e317b;
/* rgb */ color: rgb(46, 49, 123);
/* oklch */ color: oklch(35.7% 0.123 276.4);
Tailwind
colors: {
  custom: {
    50: '#6f69a2',
    500: '#2e317b',
    950: '#000000',
  },
}
SCSS
$custom: #2e317b;
$custom-light: #6f69a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e317b",
  "rgb": {
    "r": 46,
    "g": 49,
    "b": 123
  },
  "hsl": {
    "h": 237.662,
    "s": 45.562,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35697,
    "c": 0.12336,
    "h": 276.4
  },
  "luminance": 0.04208
}

Semantic roles & 50–950 ramp

primary
#2E317B
secondary
#AAA75B
accent
#D053D5
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2E317B

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

Preview Lab → · Contrast checker → · Palette generator →

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