#2E3071#2E3071

#2E3071 is a dark, moderate blue. Relative luminance 0.039; OKLCH L 34.7% C 0.110 H 277.7°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#2E3071
RGBrgb(46, 48, 113)
HSLhsl(238, 42%, 31%)
HSVhsv(238, 59%, 44%)
CMYKcmyk(59.3%, 57.5%, 0%, 55.7%)
CIE-LABlab(23.29, 20.00, -38.01)
CIE-LCHlch(23.29, 42.95, 297.75°)
OKLaboklab(34.67% 0.0147 -0.1089)
OKLCHoklch(34.67% 0.11 277.7)
XYZxyz(5.1634, 3.8866, 16.0977)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E3071 #716F2E
analogous
#2E5171 #2E3071 #4D2E71
triadic
#2E3071 #712E30 #30712E
tetradic
#2E3071 #712E51 #716F2E #2E714D
square
#2E3071 #712E51 #716F2E #2E714D
split-complementary
#2E3071 #714D2E #51712E
monochromatic
#0B0B1A #1C1E46 #2E3071 #40429C #5D5FBD

Accessibility & contrast

On white

11.82
#2E3071 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E3071
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E3071#FFFFFF#000000##FFFFFF
##2E30711.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#053A73
Deuteranopia (green-blind)
#003570
Tritanopia (blue-blind)
#083F4B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2e3071;
/* rgb */ color: rgb(46, 48, 113);
/* oklch */ color: oklch(34.7% 0.110 277.7);
Tailwind
colors: {
  custom: {
    50: '#6d689a',
    500: '#2e3071',
    950: '#000000',
  },
}
SCSS
$custom: #2e3071;
$custom-light: #6d689a;
$custom-dark: #000000;
JSON
{
  "hex": "#2e3071",
  "rgb": {
    "r": 46,
    "g": 48,
    "b": 113
  },
  "hsl": {
    "h": 238.209,
    "s": 42.138,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34668,
    "c": 0.10985,
    "h": 277.7
  },
  "luminance": 0.03887
}

Semantic roles & 50–950 ramp

primary
#2E3071
secondary
#A2A058
accent
#CE56D2
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #2E3071

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

Preview Lab → · Contrast checker → · Palette generator →

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