#2E309F#2E309F

#2E309F is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.8% C 0.174 H 273.9°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#2E309F
RGBrgb(46, 48, 159)
HSLhsl(239, 55%, 40%)
HSVhsv(239, 71%, 62%)
CMYKcmyk(71.1%, 69.8%, 0%, 37.6%)
CIE-LABlab(27.29, 36.47, -60.18)
CIE-LCHlch(27.29, 70.37, 301.22°)
OKLaboklab(38.84% 0.012 -0.1739)
OKLCHoklch(38.84% 0.174 273.9)
XYZxyz(8.4396, 5.1971, 33.3525)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E309F #9F9D2E
analogous
#2E689F #2E309F #642E9F
triadic
#2E309F #9F2E30 #309F2E
tetradic
#2E309F #9F2E68 #9F9D2E #2E9F64
square
#2E309F #9F2E68 #9F9D2E #2E9F64
split-complementary
#2E309F #9F642E #689F2E
monochromatic
#131340 #202270 #2E309F #4244C8 #7173D6

Accessibility & contrast

On white

10.30
#2E309F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#2E309F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E309F
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E309F#FFFFFF#000000##FFFFFF
##2E309F1.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A2
Deuteranopia (green-blind)
#003B9D
Tritanopia (blue-blind)
#004E63
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2e309f;
/* rgb */ color: rgb(46, 48, 159);
/* oklch */ color: oklch(38.8% 0.174 273.9);
Tailwind
colors: {
  custom: {
    50: '#7769bc',
    500: '#2e309f',
    950: '#000000',
  },
}
SCSS
$custom: #2e309f;
$custom-light: #7769bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2e309f",
  "rgb": {
    "r": 46,
    "g": 48,
    "b": 159
  },
  "hsl": {
    "h": 238.938,
    "s": 55.122,
    "l": 40.196
  },
  "oklch": {
    "l": 0.38836,
    "c": 0.17436,
    "h": 273.9
  },
  "luminance": 0.05198
}

Semantic roles & 50–950 ramp

primary
#2E309F
secondary
#BEBC6B
accent
#DC49DE
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2E309F

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

Preview Lab → · Contrast checker → · Palette generator →

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