#2E339E#2E339E

#2E339E is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.2% C 0.170 H 273.4°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#2E339E
RGBrgb(46, 51, 158)
HSLhsl(237, 55%, 40%)
HSVhsv(237, 71%, 62%)
CMYKcmyk(70.9%, 67.7%, 0%, 38%)
CIE-LABlab(27.89, 34.24, -58.59)
CIE-LCHlch(27.89, 67.86, 300.30°)
OKLaboklab(39.24% 0.0101 -0.1693)
OKLCHoklch(39.24% 0.17 273.4)
XYZxyz(8.4800, 5.4163, 32.9397)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E339E #9E992E
analogous
#2E6B9E #2E339E #612E9E
triadic
#2E339E #9E2E33 #339E2E
tetradic
#2E339E #9E2E6B #9E992E #2E9E61
square
#2E339E #9E2E6B #9E992E #2E9E61
split-complementary
#2E339E #9E612E #6B9E2E
monochromatic
#12143F #20246F #2E339E #4147C8 #7175D6

Accessibility & contrast

On white

10.08
#2E339E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#2E339E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E339E
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E339E#FFFFFF#000000##FFFFFF
##2E339E1.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A1
Deuteranopia (green-blind)
#003D9C
Tritanopia (blue-blind)
#004F64
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2e339e;
/* rgb */ color: rgb(46, 51, 158);
/* oklch */ color: oklch(39.2% 0.170 273.4);
Tailwind
colors: {
  custom: {
    50: '#776bbc',
    500: '#2e339e',
    950: '#000000',
  },
}
SCSS
$custom: #2e339e;
$custom-light: #776bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#2e339e",
  "rgb": {
    "r": 46,
    "g": 51,
    "b": 158
  },
  "hsl": {
    "h": 237.321,
    "s": 54.902,
    "l": 40
  },
  "oklch": {
    "l": 0.39242,
    "c": 0.16958,
    "h": 273.4
  },
  "luminance": 0.05417
}

Semantic roles & 50–950 ramp

primary
#2E339E
secondary
#BDB96B
accent
#D84ADE
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2E339E

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

Preview Lab → · Contrast checker → · Palette generator →

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