#2E318E#2E318E

#2E318E is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.4% C 0.150 H 275.0°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#2E318E
RGBrgb(46, 49, 142)
HSLhsl(238, 51%, 37%)
HSVhsv(238, 68%, 56%)
CMYKcmyk(67.6%, 65.5%, 0%, 44.3%)
CIE-LABlab(25.95, 29.81, -51.95)
CIE-LCHlch(25.95, 59.90, 299.85°)
OKLaboklab(37.38% 0.013 -0.1498)
OKLCHoklch(37.38% 0.15 275)
XYZxyz(7.1059, 4.7298, 26.1244)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E318E #8E8B2E
analogous
#2E618E #2E318E #5B2E8E
triadic
#2E318E #8E2E31 #318E2E
tetradic
#2E318E #8E2E61 #8E8B2E #2E8E5B
square
#2E318E #8E2E61 #8E8B2E #2E8E5B
split-complementary
#2E318E #8E5B2E #618E2E
monochromatic
#101132 #1F2160 #2E318E #3D41BC #686BCE

Accessibility & contrast

On white

10.79
#2E318E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#2E318E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E318E
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E318E#FFFFFF#000000##FFFFFF
##2E318E1.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004291
Deuteranopia (green-blind)
#00398C
Tritanopia (blue-blind)
#00495B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2e318e;
/* rgb */ color: rgb(46, 49, 142);
/* oklch */ color: oklch(37.4% 0.150 275.0);
Tailwind
colors: {
  custom: {
    50: '#7369b0',
    500: '#2e318e',
    950: '#000000',
  },
}
SCSS
$custom: #2e318e;
$custom-light: #7369b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e318e",
  "rgb": {
    "r": 46,
    "g": 49,
    "b": 142
  },
  "hsl": {
    "h": 238.125,
    "s": 51.064,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37381,
    "c": 0.15039,
    "h": 275
  },
  "luminance": 0.0473
}

Semantic roles & 50–950 ramp

primary
#2E318E
secondary
#B5B263
accent
#D64DDB
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2E318E

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

Preview Lab → · Contrast checker → · Palette generator →

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