#2E339D#2E339D

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

Color values

HEX#2E339D
RGBrgb(46, 51, 157)
HSLhsl(237, 55%, 40%)
HSVhsv(237, 71%, 62%)
CMYKcmyk(70.7%, 67.5%, 0%, 38.4%)
CIE-LABlab(27.80, 33.89, -58.13)
CIE-LCHlch(27.80, 67.29, 300.24°)
OKLaboklab(39.15% 0.0102 -0.1679)
OKLCHoklch(39.15% 0.168 273.5)
XYZxyz(8.3943, 5.3820, 32.4882)
Luminance0.0538 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E339D #9D982E
analogous
#2E6B9D #2E339D #602E9D
triadic
#2E339D #9D2E33 #339D2E
tetradic
#2E339D #9D2E6B #9D982E #2E9D60
square
#2E339D #9D2E6B #9D982E #2E9D60
split-complementary
#2E339D #9D602E #6B9D2E
monochromatic
#12143E #20246E #2E339D #4147C7 #7075D5

Accessibility & contrast

On white

10.11
#2E339D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E339D
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E339D#FFFFFF#000000##FFFFFF
##2E339D1.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A0
Deuteranopia (green-blind)
#003C9B
Tritanopia (blue-blind)
#004F63
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2e339d;
/* rgb */ color: rgb(46, 51, 157);
/* oklch */ color: oklch(39.1% 0.168 273.5);
Tailwind
colors: {
  custom: {
    50: '#776bbb',
    500: '#2e339d',
    950: '#000000',
  },
}
SCSS
$custom: #2e339d;
$custom-light: #776bbb;
$custom-dark: #000000;
JSON
{
  "hex": "#2e339d",
  "rgb": {
    "r": 46,
    "g": 51,
    "b": 157
  },
  "hsl": {
    "h": 237.297,
    "s": 54.68,
    "l": 39.804
  },
  "oklch": {
    "l": 0.39146,
    "c": 0.16826,
    "h": 273.5
  },
  "luminance": 0.05383
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E339D

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

Preview Lab → · Contrast checker → · Palette generator →

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