#2E2E78#2E2E78

#2E2E78 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.9% C 0.123 H 277.9°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#2E2E78
RGBrgb(46, 46, 120)
HSLhsl(240, 45%, 33%)
HSVhsv(240, 62%, 47%)
CMYKcmyk(61.7%, 61.7%, 0%, 52.9%)
CIE-LABlab(23.31, 23.89, -42.46)
CIE-LCHlch(23.31, 48.72, 299.36°)
OKLaboklab(34.85% 0.0169 -0.122)
OKLCHoklch(34.85% 0.123 277.9)
XYZxyz(5.4928, 3.8905, 18.2272)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2E78 #78782E
analogous
#2E5378 #2E2E78 #532E78
triadic
#2E2E78 #782E2E #2E782E
tetradic
#2E2E78 #782E53 #78782E #2E7853
square
#2E2E78 #782E53 #78782E #2E7853
split-complementary
#2E2E78 #78532E #53782E
monochromatic
#0C0C20 #1D1D4C #2E2E78 #3F3FA4 #5F5FC2

Accessibility & contrast

On white

11.81
#2E2E78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E2E78
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2E78#FFFFFF#000000##FFFFFF
##2E2E781.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7A
Deuteranopia (green-blind)
#003477
Tritanopia (blue-blind)
#00404E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2e2e78;
/* rgb */ color: rgb(46, 46, 120);
/* oklch */ color: oklch(34.9% 0.123 277.9);
Tailwind
colors: {
  custom: {
    50: '#6f66a0',
    500: '#2e2e78',
    950: '#000000',
  },
}
SCSS
$custom: #2e2e78;
$custom-light: #6f66a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2e78",
  "rgb": {
    "r": 46,
    "g": 46,
    "b": 120
  },
  "hsl": {
    "h": 240,
    "s": 44.578,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34852,
    "c": 0.12315,
    "h": 277.9
  },
  "luminance": 0.03891
}

Semantic roles & 50–950 ramp

primary
#2E2E78
secondary
#A8A85A
accent
#D454D4
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060F
muted
#7B7A7E

Preview Lab

Preview with #2E2E78

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

Preview Lab → · Contrast checker → · Palette generator →

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