#2E2770#2E2770

#2E2770 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.8% C 0.121 H 281.7°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#2E2770
RGBrgb(46, 39, 112)
HSLhsl(246, 48%, 30%)
HSVhsv(246, 65%, 44%)
CMYKcmyk(58.9%, 65.2%, 0%, 56.1%)
CIE-LABlab(20.83, 25.74, -41.35)
CIE-LCHlch(20.83, 48.71, 301.90°)
OKLaboklab(32.82% 0.0246 -0.1188)
OKLCHoklch(32.82% 0.121 281.7)
XYZxyz(4.7760, 3.2014, 15.6924)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2770 #697027
analogous
#274570 #2E2770 #522770
triadic
#2E2770 #702E27 #27702E
tetradic
#2E2770 #702745 #697027 #277052
square
#2E2770 #702745 #697027 #277052
split-complementary
#2E2770 #705227 #457027
monochromatic
#090817 #1B1743 #2E2770 #41379D #5A50C2

Accessibility & contrast

On white

12.80
#2E2770 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2E2770 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2770
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2770#FFFFFF#000000##FFFFFF
##2E27701.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003572
Deuteranopia (green-blind)
#002F6F
Tritanopia (blue-blind)
#0C3947
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2e2770;
/* rgb */ color: rgb(46, 39, 112);
/* oklch */ color: oklch(32.8% 0.121 281.7);
Tailwind
colors: {
  custom: {
    50: '#6e619a',
    500: '#2e2770',
    950: '#000000',
  },
}
SCSS
$custom: #2e2770;
$custom-light: #6e619a;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2770",
  "rgb": {
    "r": 46,
    "g": 39,
    "b": 112
  },
  "hsl": {
    "h": 245.753,
    "s": 48.344,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32824,
    "c": 0.12131,
    "h": 281.7
  },
  "luminance": 0.03202
}

Semantic roles & 50–950 ramp

primary
#2E2770
secondary
#9BA250
accent
#D850CB
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2E2770

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

Preview Lab → · Contrast checker → · Palette generator →

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