#2E2860#2E2860

#2E2860 is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.7% C 0.096 H 284.3°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#2E2860
RGBrgb(46, 40, 96)
HSLhsl(246, 41%, 27%)
HSVhsv(246, 58%, 38%)
CMYKcmyk(52.1%, 58.3%, 0%, 62.4%)
CIE-LABlab(19.81, 19.49, -32.58)
CIE-LCHlch(19.81, 37.96, 300.90°)
OKLaboklab(31.67% 0.0238 -0.093)
OKLCHoklch(31.67% 0.096 284.3)
XYZxyz(3.9962, 2.9428, 11.4215)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2860 #5A6028
analogous
#283E60 #2E2860 #4A2860
triadic
#2E2860 #602E28 #28602E
tetradic
#2E2860 #60283E #5A6028 #28604A
square
#2E2860 #60283E #5A6028 #28604A
split-complementary
#2E2860 #604A28 #3E6028
monochromatic
#0A0916 #191635 #2E2860 #433A8B #594DB5

Accessibility & contrast

On white

13.22
#2E2860 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2E2860 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2860
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2860#FFFFFF#000000##FFFFFF
##2E28601.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#083262
Deuteranopia (green-blind)
#052E5F
Tritanopia (blue-blind)
#1C343F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2e2860;
/* rgb */ color: rgb(46, 40, 96);
/* oklch */ color: oklch(31.7% 0.096 284.3);
Tailwind
colors: {
  custom: {
    50: '#6b628e',
    500: '#2e2860',
    950: '#000000',
  },
}
SCSS
$custom: #2e2860;
$custom-light: #6b628e;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2860",
  "rgb": {
    "r": 46,
    "g": 40,
    "b": 96
  },
  "hsl": {
    "h": 246.429,
    "s": 41.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.31666,
    "c": 0.09595,
    "h": 284.3
  },
  "luminance": 0.02943
}

Semantic roles & 50–950 ramp

primary
#2E2860
secondary
#8C9351
accent
#D157C4
background
#F6F5F8
surface
#EBEAF0
border
#C6C6CB
text
#07050C
muted
#7A797D

Preview Lab

Preview with #2E2860

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

Preview Lab → · Contrast checker → · Palette generator →

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