#2E318A#2E318A

#2E318A is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.0% C 0.145 H 275.3°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#2E318A
RGBrgb(46, 49, 138)
HSLhsl(238, 50%, 36%)
HSVhsv(238, 67%, 54%)
CMYKcmyk(66.7%, 64.5%, 0%, 45.9%)
CIE-LABlab(25.60, 28.37, -50.04)
CIE-LCHlch(25.60, 57.53, 299.55°)
OKLaboklab(37.02% 0.0133 -0.1442)
OKLCHoklch(37.02% 0.145 275.3)
XYZxyz(6.8110, 4.6119, 24.5711)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E318A #8A872E
analogous
#2E5F8A #2E318A #592E8A
triadic
#2E318A #8A2E31 #318A2E
tetradic
#2E318A #8A2E5F #8A872E #2E8A59
square
#2E318A #8A2E5F #8A872E #2E8A59
split-complementary
#2E318A #8A592E #5F8A2E
monochromatic
#0F102E #1F215C #2E318A #3D41B8 #666ACC

Accessibility & contrast

On white

10.92
#2E318A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2E318A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E318A
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E318A#FFFFFF#000000##FFFFFF
##2E318A1.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418D
Deuteranopia (green-blind)
#003988
Tritanopia (blue-blind)
#004858
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2e318a;
/* rgb */ color: rgb(46, 49, 138);
/* oklch */ color: oklch(37.0% 0.145 275.3);
Tailwind
colors: {
  custom: {
    50: '#7369ad',
    500: '#2e318a',
    950: '#000000',
  },
}
SCSS
$custom: #2e318a;
$custom-light: #7369ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2e318a",
  "rgb": {
    "r": 46,
    "g": 49,
    "b": 138
  },
  "hsl": {
    "h": 238.043,
    "s": 50,
    "l": 36.078
  },
  "oklch": {
    "l": 0.37015,
    "c": 0.14485,
    "h": 275.3
  },
  "luminance": 0.04612
}

Semantic roles & 50–950 ramp

primary
#2E318A
secondary
#B3B061
accent
#D54EDA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2E318A

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

Preview Lab → · Contrast checker → · Palette generator →

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