#2E207F#2E207F

#2E207F is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.1% C 0.151 H 281.0°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#2E207F
RGBrgb(46, 32, 127)
HSLhsl(249, 60%, 31%)
HSVhsv(249, 75%, 50%)
CMYKcmyk(63.8%, 74.8%, 0%, 50.2%)
CIE-LABlab(20.62, 35.24, -51.29)
CIE-LCHlch(20.62, 62.23, 304.49°)
OKLaboklab(33.1% 0.0287 -0.1479)
OKLCHoklch(33.1% 0.151 281)
XYZxyz(5.4728, 3.1458, 20.3934)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E207F #717F20
analogous
#20417F #2E207F #5D207F
triadic
#2E207F #7F2E20 #207F2E
tetradic
#2E207F #7F2041 #717F20 #207F5D
square
#2E207F #7F2041 #717F20 #207F5D
split-complementary
#2E207F #7F5D20 #417F20
monochromatic
#0B071D #1C144E #2E207F #402CB0 #5D48D1

Accessibility & contrast

On white

12.89
#2E207F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2E207F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E207F
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E207F#FFFFFF#000000##FFFFFF
##2E207F1.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#002E7D
Tritanopia (blue-blind)
#003A4D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2e207f;
/* rgb */ color: rgb(46, 32, 127);
/* oklch */ color: oklch(33.1% 0.151 281.0);
Tailwind
colors: {
  custom: {
    50: '#725da5',
    500: '#2e207f',
    950: '#000000',
  },
}
SCSS
$custom: #2e207f;
$custom-light: #725da5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e207f",
  "rgb": {
    "r": 46,
    "g": 32,
    "b": 127
  },
  "hsl": {
    "h": 248.842,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.331,
    "c": 0.1507,
    "h": 281
  },
  "luminance": 0.03146
}

Semantic roles & 50–950 ramp

primary
#2E207F
secondary
#A2B249
accent
#E345CC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2E207F

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

Preview Lab → · Contrast checker → · Palette generator →

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