#2E2865#2E2865

#2E2865 is a dark, moderate blue. Relative luminance 0.030; OKLCH L 32.1% C 0.104 H 283.3°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#2E2865
RGBrgb(46, 40, 101)
HSLhsl(246, 43%, 28%)
HSVhsv(246, 60%, 40%)
CMYKcmyk(54.5%, 60.4%, 0%, 60.4%)
CIE-LABlab(20.19, 21.23, -35.24)
CIE-LCHlch(20.19, 41.14, 301.06°)
OKLaboklab(32.07% 0.0239 -0.1008)
OKLCHoklch(32.07% 0.104 283.3)
XYZxyz(4.2338, 3.0378, 12.6727)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2865 #5F6528
analogous
#284065 #2E2865 #4D2865
triadic
#2E2865 #652E28 #28652E
tetradic
#2E2865 #652840 #5F6528 #28654D
square
#2E2865 #652840 #5F6528 #28654D
split-complementary
#2E2865 #654D28 #406528
monochromatic
#0A0916 #1A1739 #2E2865 #423991 #594EB9

Accessibility & contrast

On white

13.06
#2E2865 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2E2865 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2865
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2865#FFFFFF#000000##FFFFFF
##2E28651.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003367
Deuteranopia (green-blind)
#002F64
Tritanopia (blue-blind)
#183642
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2e2865;
/* rgb */ color: rgb(46, 40, 101);
/* oklch */ color: oklch(32.1% 0.104 283.3);
Tailwind
colors: {
  custom: {
    50: '#6c6291',
    500: '#2e2865',
    950: '#000000',
  },
}
SCSS
$custom: #2e2865;
$custom-light: #6c6291;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2865",
  "rgb": {
    "r": 46,
    "g": 40,
    "b": 101
  },
  "hsl": {
    "h": 245.902,
    "s": 43.262,
    "l": 27.647
  },
  "oklch": {
    "l": 0.32071,
    "c": 0.10359,
    "h": 283.3
  },
  "luminance": 0.03038
}

Semantic roles & 50–950 ramp

primary
#2E2865
secondary
#919851
accent
#D355C7
background
#F6F5F9
surface
#ECEAF1
border
#C7C6CB
text
#07050D
muted
#7A797E

Preview Lab

Preview with #2E2865

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

Preview Lab → · Contrast checker → · Palette generator →

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