#2E339C#2E339C

#2E339C is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.1% C 0.167 H 273.5°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#2E339C
RGBrgb(46, 51, 156)
HSLhsl(237, 54%, 40%)
HSVhsv(237, 71%, 61%)
CMYKcmyk(70.5%, 67.3%, 0%, 38.8%)
CIE-LABlab(27.70, 33.53, -57.68)
CIE-LCHlch(27.70, 66.71, 300.17°)
OKLaboklab(39.05% 0.0103 -0.1666)
OKLCHoklch(39.05% 0.167 273.5)
XYZxyz(8.3093, 5.3480, 32.0404)
Luminance0.0535 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E339C #9C972E
analogous
#2E6A9C #2E339C #602E9C
triadic
#2E339C #9C2E33 #339C2E
tetradic
#2E339C #9C2E6A #9C972E #2E9C60
square
#2E339C #9C2E6A #9C972E #2E9C60
split-complementary
#2E339C #9C602E #6A9C2E
monochromatic
#12143D #20246D #2E339C #4047C7 #7074D5

Accessibility & contrast

On white

10.15
#2E339C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#2E339C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E339C
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E339C#FFFFFF#000000##FFFFFF
##2E339C1.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479F
Deuteranopia (green-blind)
#003C9A
Tritanopia (blue-blind)
#004F63
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2e339c;
/* rgb */ color: rgb(46, 51, 156);
/* oklch */ color: oklch(39.1% 0.167 273.5);
Tailwind
colors: {
  custom: {
    50: '#766bba',
    500: '#2e339c',
    950: '#000000',
  },
}
SCSS
$custom: #2e339c;
$custom-light: #766bba;
$custom-dark: #000000;
JSON
{
  "hex": "#2e339c",
  "rgb": {
    "r": 46,
    "g": 51,
    "b": 156
  },
  "hsl": {
    "h": 237.273,
    "s": 54.455,
    "l": 39.608
  },
  "oklch": {
    "l": 0.3905,
    "c": 0.16693,
    "h": 273.5
  },
  "luminance": 0.05349
}

Semantic roles & 50–950 ramp

primary
#2E339C
secondary
#BCB86A
accent
#D74ADE
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2E339C

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

Preview Lab → · Contrast checker → · Palette generator →

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