#2E3271#2E3271

#2E3271 is a dark, moderate blue. Relative luminance 0.041; OKLCH L 35.1% C 0.107 H 276.6°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#2E3271
RGBrgb(46, 50, 113)
HSLhsl(236, 42%, 31%)
HSVhsv(236, 59%, 44%)
CMYKcmyk(59.3%, 55.8%, 0%, 55.7%)
CIE-LABlab(23.85, 18.62, -37.11)
CIE-LCHlch(23.85, 41.52, 296.65°)
OKLaboklab(35.08% 0.0124 -0.1062)
OKLCHoklch(35.08% 0.107 276.6)
XYZxyz(5.2470, 4.0539, 16.1256)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E3271 #716D2E
analogous
#2E5371 #2E3271 #4B2E71
triadic
#2E3271 #712E32 #32712E
tetradic
#2E3271 #712E53 #716D2E #2E714B
square
#2E3271 #712E53 #716D2E #2E714B
split-complementary
#2E3271 #714B2E #53712E
monochromatic
#0B0C1A #1C1F46 #2E3271 #40459C #5D62BD

Accessibility & contrast

On white

11.60
#2E3271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2E3271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E3271
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E3271#FFFFFF#000000##FFFFFF
##2E32711.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D3C73
Deuteranopia (green-blind)
#003670
Tritanopia (blue-blind)
#08404C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2e3271;
/* rgb */ color: rgb(46, 50, 113);
/* oklch */ color: oklch(35.1% 0.107 276.6);
Tailwind
colors: {
  custom: {
    50: '#6d699a',
    500: '#2e3271',
    950: '#000000',
  },
}
SCSS
$custom: #2e3271;
$custom-light: #6d699a;
$custom-dark: #000000;
JSON
{
  "hex": "#2e3271",
  "rgb": {
    "r": 46,
    "g": 50,
    "b": 113
  },
  "hsl": {
    "h": 236.418,
    "s": 42.138,
    "l": 31.176
  },
  "oklch": {
    "l": 0.35083,
    "c": 0.10693,
    "h": 276.6
  },
  "luminance": 0.04054
}

Semantic roles & 50–950 ramp

primary
#2E3271
secondary
#A29E58
accent
#CB56D2
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #2E3271

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

Preview Lab → · Contrast checker → · Palette generator →

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