#2E2F71#2E2F71

#2E2F71 is a dark, moderate blue. Relative luminance 0.038; OKLCH L 34.5% C 0.111 H 278.2°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#2E2F71
RGBrgb(46, 47, 113)
HSLhsl(239, 42%, 31%)
HSVhsv(239, 59%, 44%)
CMYKcmyk(59.3%, 58.4%, 0%, 55.7%)
CIE-LABlab(23.02, 20.69, -38.45)
CIE-LCHlch(23.02, 43.66, 298.28°)
OKLaboklab(34.46% 0.0158 -0.1102)
OKLCHoklch(34.46% 0.111 278.2)
XYZxyz(5.1229, 3.8058, 16.0842)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2F71 #71702E
analogous
#2E5071 #2E2F71 #4E2E71
triadic
#2E2F71 #712E2F #2F712E
tetradic
#2E2F71 #712E50 #71702E #2E714E
square
#2E2F71 #712E50 #71702E #2E714E
split-complementary
#2E2F71 #714E2E #50712E
monochromatic
#0B0B1A #1C1D46 #2E2F71 #40419C #5D5EBD

Accessibility & contrast

On white

11.92
#2E2F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2E2F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2F71
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2F71#FFFFFF#000000##FFFFFF
##2E2F711.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#013A73
Deuteranopia (green-blind)
#003470
Tritanopia (blue-blind)
#093E4B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2e2f71;
/* rgb */ color: rgb(46, 47, 113);
/* oklch */ color: oklch(34.5% 0.111 278.2);
Tailwind
colors: {
  custom: {
    50: '#6e679a',
    500: '#2e2f71',
    950: '#000000',
  },
}
SCSS
$custom: #2e2f71;
$custom-light: #6e679a;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2f71",
  "rgb": {
    "r": 46,
    "g": 47,
    "b": 113
  },
  "hsl": {
    "h": 239.104,
    "s": 42.138,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34463,
    "c": 0.11132,
    "h": 278.2
  },
  "luminance": 0.03806
}

Semantic roles & 50–950 ramp

primary
#2E2F71
secondary
#A2A158
accent
#D056D2
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #2E2F71

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

Preview Lab → · Contrast checker → · Palette generator →

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