#2E339A#2E339A

#2E339A is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.9% C 0.164 H 273.7°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#2E339A
RGBrgb(46, 51, 154)
HSLhsl(237, 54%, 39%)
HSVhsv(237, 70%, 60%)
CMYKcmyk(70.1%, 66.9%, 0%, 39.6%)
CIE-LABlab(27.52, 32.82, -56.76)
CIE-LCHlch(27.52, 65.56, 300.04°)
OKLaboklab(38.86% 0.0105 -0.1639)
OKLCHoklch(38.86% 0.164 273.7)
XYZxyz(8.1413, 5.2808, 31.1558)
Luminance0.0528 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E339A #9A952E
analogous
#2E699A #2E339A #5F2E9A
triadic
#2E339A #9A2E33 #339A2E
tetradic
#2E339A #9A2E69 #9A952E #2E9A5F
square
#2E339A #9A2E69 #9A952E #2E9A5F
split-complementary
#2E339A #9A5F2E #699A2E
monochromatic
#12143C #20236B #2E339A #3F46C6 #6F73D4

Accessibility & contrast

On white

10.21
#2E339A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#2E339A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E339A
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E339A#FFFFFF#000000##FFFFFF
##2E339A1.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469D
Deuteranopia (green-blind)
#003C98
Tritanopia (blue-blind)
#004E62
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2e339a;
/* rgb */ color: rgb(46, 51, 154);
/* oklch */ color: oklch(38.9% 0.164 273.7);
Tailwind
colors: {
  custom: {
    50: '#766bb9',
    500: '#2e339a',
    950: '#000000',
  },
}
SCSS
$custom: #2e339a;
$custom-light: #766bb9;
$custom-dark: #000000;
JSON
{
  "hex": "#2e339a",
  "rgb": {
    "r": 46,
    "g": 51,
    "b": 154
  },
  "hsl": {
    "h": 237.222,
    "s": 54,
    "l": 39.216
  },
  "oklch": {
    "l": 0.3886,
    "c": 0.16425,
    "h": 273.7
  },
  "luminance": 0.05282
}

Semantic roles & 50–950 ramp

primary
#2E339A
secondary
#BBB769
accent
#D74ADD
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2E339A

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

Preview Lab → · Contrast checker → · Palette generator →

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