#2E2970#2E2970

#2E2970 is a dark, moderate blue. Relative luminance 0.033; OKLCH L 33.2% C 0.118 H 280.9°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#2E2970
RGBrgb(46, 41, 112)
HSLhsl(244, 46%, 30%)
HSVhsv(244, 63%, 44%)
CMYKcmyk(58.9%, 63.4%, 0%, 56.1%)
CIE-LABlab(21.34, 24.41, -40.52)
CIE-LCHlch(21.34, 47.31, 301.06°)
OKLaboklab(33.2% 0.0225 -0.1163)
OKLCHoklch(33.2% 0.118 280.9)
XYZxyz(4.8434, 3.3363, 15.7148)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2970 #6B7029
analogous
#294870 #2E2970 #512970
triadic
#2E2970 #702E29 #29702E
tetradic
#2E2970 #702948 #6B7029 #297051
square
#2E2970 #702948 #6B7029 #297051
split-complementary
#2E2970 #705129 #487029
monochromatic
#090816 #1C1943 #2E2970 #40399D #5B53C0

Accessibility & contrast

On white

12.59
#2E2970 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2E2970 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2970
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2970#FFFFFF#000000##FFFFFF
##2E29701.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003672
Deuteranopia (green-blind)
#00316F
Tritanopia (blue-blind)
#0C3A48
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2e2970;
/* rgb */ color: rgb(46, 41, 112);
/* oklch */ color: oklch(33.2% 0.118 280.9);
Tailwind
colors: {
  custom: {
    50: '#6e639a',
    500: '#2e2970',
    950: '#000000',
  },
}
SCSS
$custom: #2e2970;
$custom-light: #6e639a;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2970",
  "rgb": {
    "r": 46,
    "g": 41,
    "b": 112
  },
  "hsl": {
    "h": 244.225,
    "s": 46.405,
    "l": 30
  },
  "oklch": {
    "l": 0.33198,
    "c": 0.11848,
    "h": 280.9
  },
  "luminance": 0.03337
}

Semantic roles & 50–950 ramp

primary
#2E2970
secondary
#9DA253
accent
#D652CD
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2E2970

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

Preview Lab → · Contrast checker → · Palette generator →

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