#2E3366#2E3366

#2E3366 is a dark, moderate blue. Relative luminance 0.039; OKLCH L 34.5% C 0.088 H 276.5°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#2E3366
RGBrgb(46, 51, 102)
HSLhsl(235, 38%, 29%)
HSVhsv(235, 55%, 40%)
CMYKcmyk(54.9%, 50%, 0%, 60%)
CIE-LABlab(23.36, 13.96, -30.80)
CIE-LCHlch(23.36, 33.82, 294.38°)
OKLaboklab(34.47% 0.01 -0.0876)
OKLCHoklch(34.47% 0.088 276.5)
XYZxyz(4.7081, 3.9075, 13.0739)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E3366 #66612E
analogous
#2E4F66 #2E3366 #452E66
triadic
#2E3366 #662E33 #33662E
tetradic
#2E3366 #662E4F #66612E #2E6645
square
#2E3366 #662E4F #66612E #2E6645
split-complementary
#2E3366 #66452E #4F662E
monochromatic
#0A0B15 #1B1E3C #2E3366 #414890 #5A62B5

Accessibility & contrast

On white

11.79
#2E3366 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2E3366 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E3366
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E3366#FFFFFF#000000##FFFFFF
##2E33661.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C3A68
Deuteranopia (green-blind)
#163565
Tritanopia (blue-blind)
#163E47
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2e3366;
/* rgb */ color: rgb(46, 51, 102);
/* oklch */ color: oklch(34.5% 0.088 276.5);
Tailwind
colors: {
  custom: {
    50: '#6b6a92',
    500: '#2e3366',
    950: '#000000',
  },
}
SCSS
$custom: #2e3366;
$custom-light: #6b6a92;
$custom-dark: #000000;
JSON
{
  "hex": "#2e3366",
  "rgb": {
    "r": 46,
    "g": 51,
    "b": 102
  },
  "hsl": {
    "h": 234.643,
    "s": 37.838,
    "l": 29.02
  },
  "oklch": {
    "l": 0.34469,
    "c": 0.08822,
    "h": 276.5
  },
  "luminance": 0.03908
}

Semantic roles & 50–950 ramp

primary
#2E3366
secondary
#989258
accent
#C35ACE
background
#F6F6F9
surface
#EBEBF1
border
#C6C6CB
text
#07060D
muted
#7A7A7E

Preview Lab

Preview with #2E3366

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

Preview Lab → · Contrast checker → · Palette generator →

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