#2E309D#2E309D

#2E309D is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.6% C 0.172 H 274.1°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#2E309D
RGBrgb(46, 48, 157)
HSLhsl(239, 55%, 40%)
HSVhsv(239, 71%, 62%)
CMYKcmyk(70.7%, 69.4%, 0%, 38.4%)
CIE-LABlab(27.10, 35.77, -59.28)
CIE-LCHlch(27.10, 69.24, 301.11°)
OKLaboklab(38.64% 0.0122 -0.1713)
OKLCHoklch(38.64% 0.172 274.1)
XYZxyz(8.2674, 5.1283, 32.4459)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E309D #9D9B2E
analogous
#2E689D #2E309D #642E9D
triadic
#2E309D #9D2E30 #309D2E
tetradic
#2E309D #9D2E68 #9D9B2E #2E9D64
square
#2E309D #9D2E68 #9D9B2E #2E9D64
split-complementary
#2E309D #9D642E #689D2E
monochromatic
#12133E #20226E #2E309D #4143C7 #7072D5

Accessibility & contrast

On white

10.37
#2E309D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#2E309D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E309D
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E309D#FFFFFF#000000##FFFFFF
##2E309D1.0010.372.0310.37
#FFFFFF10.371.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A0
Deuteranopia (green-blind)
#003B9B
Tritanopia (blue-blind)
#004D62
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2e309d;
/* rgb */ color: rgb(46, 48, 157);
/* oklch */ color: oklch(38.6% 0.172 274.1);
Tailwind
colors: {
  custom: {
    50: '#7769bb',
    500: '#2e309d',
    950: '#000000',
  },
}
SCSS
$custom: #2e309d;
$custom-light: #7769bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2e309d",
  "rgb": {
    "r": 46,
    "g": 48,
    "b": 157
  },
  "hsl": {
    "h": 238.919,
    "s": 54.68,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38639,
    "c": 0.17174,
    "h": 274.1
  },
  "luminance": 0.05129
}

Semantic roles & 50–950 ramp

primary
#2E309D
secondary
#BDBB6A
accent
#DB4ADE
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2E309D

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

Preview Lab → · Contrast checker → · Palette generator →

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