#2E2F81#2E2F81

#2E2F81 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.8% C 0.135 H 276.6°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#2E2F81
RGBrgb(46, 47, 129)
HSLhsl(239, 47%, 34%)
HSVhsv(239, 64%, 51%)
CMYKcmyk(64.3%, 63.6%, 0%, 49.4%)
CIE-LABlab(24.32, 26.45, -46.50)
CIE-LCHlch(24.32, 53.50, 299.63°)
OKLaboklab(35.83% 0.0156 -0.1339)
OKLCHoklch(35.83% 0.135 276.6)
XYZxyz(6.1044, 4.1984, 21.2533)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2F81 #81802E
analogous
#2E5981 #2E2F81 #572E81
triadic
#2E2F81 #812E2F #2F812E
tetradic
#2E2F81 #812E59 #81802E #2E8157
square
#2E2F81 #812E59 #81802E #2E8157
split-complementary
#2E2F81 #81572E #59812E
monochromatic
#0E0E27 #1E1F54 #2E2F81 #3E3FAE #6263C7

Accessibility & contrast

On white

11.41
#2E2F81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2E2F81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2F81
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2F81#FFFFFF#000000##FFFFFF
##2E2F811.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D84
Deuteranopia (green-blind)
#00367F
Tritanopia (blue-blind)
#004353
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2e2f81;
/* rgb */ color: rgb(46, 47, 129);
/* oklch */ color: oklch(35.8% 0.135 276.6);
Tailwind
colors: {
  custom: {
    50: '#7167a6',
    500: '#2e2f81',
    950: '#000000',
  },
}
SCSS
$custom: #2e2f81;
$custom-light: #7167a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2f81",
  "rgb": {
    "r": 46,
    "g": 47,
    "b": 129
  },
  "hsl": {
    "h": 239.277,
    "s": 47.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35832,
    "c": 0.13478,
    "h": 276.6
  },
  "luminance": 0.04199
}

Semantic roles & 50–950 ramp

primary
#2E2F81
secondary
#AEAD5D
accent
#D551D7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2E2F81

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

Preview Lab → · Contrast checker → · Palette generator →

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