#2E318F#2E318F

#2E318F is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.5% C 0.152 H 274.9°. Best body text is #FFFFFF at 10.76:1 contrast (WCAG AA passes).

Color values

HEX#2E318F
RGBrgb(46, 49, 143)
HSLhsl(238, 51%, 37%)
HSVhsv(238, 68%, 56%)
CMYKcmyk(67.8%, 65.7%, 0%, 43.9%)
CIE-LABlab(26.04, 30.17, -52.42)
CIE-LCHlch(26.04, 60.48, 299.92°)
OKLaboklab(37.47% 0.0129 -0.1512)
OKLCHoklch(37.47% 0.152 274.9)
XYZxyz(7.1813, 4.7600, 26.5216)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E318F #8F8C2E
analogous
#2E628F #2E318F #5B2E8F
triadic
#2E318F #8F2E31 #318F2E
tetradic
#2E318F #8F2E62 #8F8C2E #2E8F5B
square
#2E318F #8F2E62 #8F8C2E #2E8F5B
split-complementary
#2E318F #8F5B2E #628F2E
monochromatic
#101132 #1F2161 #2E318F #3D41BD #696CCF

Accessibility & contrast

On white

10.76
#2E318F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E318F
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E318F#FFFFFF#000000##FFFFFF
##2E318F1.0010.761.9510.76
#FFFFFF10.761.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004292
Deuteranopia (green-blind)
#00398D
Tritanopia (blue-blind)
#00495B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2e318f;
/* rgb */ color: rgb(46, 49, 143);
/* oklch */ color: oklch(37.5% 0.152 274.9);
Tailwind
colors: {
  custom: {
    50: '#7469b1',
    500: '#2e318f',
    950: '#000000',
  },
}
SCSS
$custom: #2e318f;
$custom-light: #7469b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e318f",
  "rgb": {
    "r": 46,
    "g": 49,
    "b": 143
  },
  "hsl": {
    "h": 238.144,
    "s": 51.323,
    "l": 37.059
  },
  "oklch": {
    "l": 0.37474,
    "c": 0.15177,
    "h": 274.9
  },
  "luminance": 0.04761
}

Semantic roles & 50–950 ramp

primary
#2E318F
secondary
#B6B363
accent
#D64DDB
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2E318F

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

Preview Lab → · Contrast checker → · Palette generator →

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