#2E2773#2E2773

#2E2773 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.1% C 0.126 H 281.2°. Best body text is #FFFFFF at 12.70:1 contrast (WCAG AA passes).

Color values

HEX#2E2773
RGBrgb(46, 39, 115)
HSLhsl(246, 49%, 30%)
HSVhsv(246, 66%, 45%)
CMYKcmyk(60%, 66.1%, 0%, 54.9%)
CIE-LABlab(21.09, 26.79, -42.86)
CIE-LCHlch(21.09, 50.55, 302.00°)
OKLaboklab(33.09% 0.0244 -0.1232)
OKLCHoklch(33.09% 0.126 281.2)
XYZxyz(4.9458, 3.2694, 16.5868)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2773 #6C7327
analogous
#274673 #2E2773 #542773
triadic
#2E2773 #732E27 #27732E
tetradic
#2E2773 #732746 #6C7327 #277354
square
#2E2773 #732746 #6C7327 #277354
split-complementary
#2E2773 #735427 #467327
monochromatic
#090818 #1C1845 #2E2773 #4036A1 #5B51C4

Accessibility & contrast

On white

12.70
#2E2773 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2E2773 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2773
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2773#FFFFFF#000000##FFFFFF
##2E27731.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003575
Deuteranopia (green-blind)
#003071
Tritanopia (blue-blind)
#073A49
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2e2773;
/* rgb */ color: rgb(46, 39, 115);
/* oklch */ color: oklch(33.1% 0.126 281.2);
Tailwind
colors: {
  custom: {
    50: '#6f619c',
    500: '#2e2773',
    950: '#000000',
  },
}
SCSS
$custom: #2e2773;
$custom-light: #6f619c;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2773",
  "rgb": {
    "r": 46,
    "g": 39,
    "b": 115
  },
  "hsl": {
    "h": 245.526,
    "s": 49.351,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33094,
    "c": 0.1256,
    "h": 281.2
  },
  "luminance": 0.0327
}

Semantic roles & 50–950 ramp

primary
#2E2773
secondary
#9EA550
accent
#D94FCC
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2E2773

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

Preview Lab → · Contrast checker → · Palette generator →

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