#2E3370#2E3370

#2E3370 is a dark, moderate blue. Relative luminance 0.041; OKLCH L 35.2% C 0.104 H 276.1°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#2E3370
RGBrgb(46, 51, 112)
HSLhsl(235, 42%, 31%)
HSVhsv(235, 59%, 44%)
CMYKcmyk(58.9%, 54.5%, 0%, 56.1%)
CIE-LABlab(24.06, 17.57, -36.13)
CIE-LCHlch(24.06, 40.18, 295.93°)
OKLaboklab(35.22% 0.0111 -0.1033)
OKLCHoklch(35.22% 0.104 276.1)
XYZxyz(5.2342, 4.1180, 15.8451)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E3370 #706B2E
analogous
#2E5470 #2E3370 #4A2E70
triadic
#2E3370 #702E33 #33702E
tetradic
#2E3370 #702E54 #706B2E #2E704A
square
#2E3370 #702E54 #706B2E #2E704A
split-complementary
#2E3370 #704A2E #54702E
monochromatic
#0A0B19 #1C1F45 #2E3370 #40479B #5C64BC

Accessibility & contrast

On white

11.52
#2E3370 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2E3370 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E3370
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E3370#FFFFFF#000000##FFFFFF
##2E33701.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#113C72
Deuteranopia (green-blind)
#05376F
Tritanopia (blue-blind)
#09414C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2e3370;
/* rgb */ color: rgb(46, 51, 112);
/* oklch */ color: oklch(35.2% 0.104 276.1);
Tailwind
colors: {
  custom: {
    50: '#6d6a99',
    500: '#2e3370',
    950: '#000000',
  },
}
SCSS
$custom: #2e3370;
$custom-light: #6d6a99;
$custom-dark: #000000;
JSON
{
  "hex": "#2e3370",
  "rgb": {
    "r": 46,
    "g": 51,
    "b": 112
  },
  "hsl": {
    "h": 235.455,
    "s": 41.772,
    "l": 30.98
  },
  "oklch": {
    "l": 0.35217,
    "c": 0.10393,
    "h": 276.1
  },
  "luminance": 0.04118
}

Semantic roles & 50–950 ramp

primary
#2E3370
secondary
#A19C58
accent
#C856D2
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #2E3370

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

Preview Lab → · Contrast checker → · Palette generator →

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