#2E2E79#2E2E79

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

Color values

HEX#2E2E79
RGBrgb(46, 46, 121)
HSLhsl(240, 45%, 33%)
HSVhsv(240, 62%, 47%)
CMYKcmyk(62%, 62%, 0%, 52.5%)
CIE-LABlab(23.39, 24.25, -42.96)
CIE-LCHlch(23.39, 49.33, 299.44°)
OKLaboklab(34.94% 0.0169 -0.1234)
OKLCHoklch(34.94% 0.125 277.8)
XYZxyz(5.5538, 3.9149, 18.5484)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2E79 #79792E
analogous
#2E5379 #2E2E79 #532E79
triadic
#2E2E79 #792E2E #2E792E
tetradic
#2E2E79 #792E53 #79792E #2E7953
square
#2E2E79 #792E53 #79792E #2E7953
split-complementary
#2E2E79 #79532E #53792E
monochromatic
#0C0C20 #1D1D4D #2E2E79 #3F3FA5 #5F5FC2

Accessibility & contrast

On white

11.78
#2E2E79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E2E79
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2E79#FFFFFF#000000##FFFFFF
##2E2E791.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e2e79;
/* rgb */ color: rgb(46, 46, 121);
/* oklch */ color: oklch(34.9% 0.125 277.8);
Tailwind
colors: {
  custom: {
    50: '#6f67a0',
    500: '#2e2e79',
    950: '#000000',
  },
}
SCSS
$custom: #2e2e79;
$custom-light: #6f67a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2e79",
  "rgb": {
    "r": 46,
    "g": 46,
    "b": 121
  },
  "hsl": {
    "h": 240,
    "s": 44.91,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34938,
    "c": 0.1246,
    "h": 277.8
  },
  "luminance": 0.03915
}

Semantic roles & 50–950 ramp

primary
#2E2E79
secondary
#A9A95A
accent
#D553D5
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060F
muted
#7B7A7E

Preview Lab

Preview with #2E2E79

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

Preview Lab → · Contrast checker → · Palette generator →

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