#2E317A#2E317A

#2E317A is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.6% C 0.122 H 276.5°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#2E317A
RGBrgb(46, 49, 122)
HSLhsl(238, 45%, 33%)
HSVhsv(238, 62%, 48%)
CMYKcmyk(62.3%, 59.8%, 0%, 52.2%)
CIE-LABlab(24.26, 22.57, -42.17)
CIE-LCHlch(24.26, 47.83, 298.16°)
OKLaboklab(35.61% 0.0138 -0.1211)
OKLCHoklch(35.61% 0.122 276.5)
XYZxyz(5.7367, 4.1822, 18.9135)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E317A #7A772E
analogous
#2E577A #2E317A #512E7A
triadic
#2E317A #7A2E31 #317A2E
tetradic
#2E317A #7A2E57 #7A772E #2E7A51
square
#2E317A #7A2E57 #7A772E #2E7A51
split-complementary
#2E317A #7A512E #577A2E
monochromatic
#0C0D21 #1D1F4E #2E317A #3F43A6 #6063C3

Accessibility & contrast

On white

11.43
#2E317A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E317A
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E317A#FFFFFF#000000##FFFFFF
##2E317A1.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7C
Deuteranopia (green-blind)
#003679
Tritanopia (blue-blind)
#004250
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2e317a;
/* rgb */ color: rgb(46, 49, 122);
/* oklch */ color: oklch(35.6% 0.122 276.5);
Tailwind
colors: {
  custom: {
    50: '#6f69a1',
    500: '#2e317a',
    950: '#000000',
  },
}
SCSS
$custom: #2e317a;
$custom-light: #6f69a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e317a",
  "rgb": {
    "r": 46,
    "g": 49,
    "b": 122
  },
  "hsl": {
    "h": 237.632,
    "s": 45.238,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35613,
    "c": 0.12189,
    "h": 276.5
  },
  "luminance": 0.04183
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E317A

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

Preview Lab → · Contrast checker → · Palette generator →

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