#2E339F#2E339F

#2E339F is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.3% C 0.171 H 273.3°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#2E339F
RGBrgb(46, 51, 159)
HSLhsl(237, 55%, 40%)
HSVhsv(237, 71%, 62%)
CMYKcmyk(71.1%, 67.9%, 0%, 37.6%)
CIE-LABlab(27.98, 34.60, -59.04)
CIE-LCHlch(27.98, 68.43, 300.37°)
OKLaboklab(39.34% 0.01 -0.1706)
OKLCHoklch(39.34% 0.171 273.3)
XYZxyz(8.5665, 5.4509, 33.3948)
Luminance0.0545 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E339F #9F9A2E
analogous
#2E6C9F #2E339F #612E9F
triadic
#2E339F #9F2E33 #339F2E
tetradic
#2E339F #9F2E6C #9F9A2E #2E9F61
square
#2E339F #9F2E6C #9F9A2E #2E9F61
split-complementary
#2E339F #9F612E #6C9F2E
monochromatic
#131540 #202470 #2E339F #4248C8 #7176D6

Accessibility & contrast

On white

10.05
#2E339F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#2E339F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E339F
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E339F#FFFFFF#000000##FFFFFF
##2E339F1.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A2
Deuteranopia (green-blind)
#003D9D
Tritanopia (blue-blind)
#005064
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2e339f;
/* rgb */ color: rgb(46, 51, 159);
/* oklch */ color: oklch(39.3% 0.171 273.3);
Tailwind
colors: {
  custom: {
    50: '#776bbc',
    500: '#2e339f',
    950: '#000000',
  },
}
SCSS
$custom: #2e339f;
$custom-light: #776bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#2e339f",
  "rgb": {
    "r": 46,
    "g": 51,
    "b": 159
  },
  "hsl": {
    "h": 237.345,
    "s": 55.122,
    "l": 40.196
  },
  "oklch": {
    "l": 0.39338,
    "c": 0.1709,
    "h": 273.3
  },
  "luminance": 0.05452
}

Semantic roles & 50–950 ramp

primary
#2E339F
secondary
#BEBA6B
accent
#D849DE
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2E339F

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

Preview Lab → · Contrast checker → · Palette generator →

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