#2E277F#2E277F

#2E277F is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.2% C 0.142 H 279.3°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#2E277F
RGBrgb(46, 39, 127)
HSLhsl(245, 53%, 33%)
HSVhsv(245, 69%, 50%)
CMYKcmyk(63.8%, 69.3%, 0%, 50.2%)
CIE-LABlab(22.17, 30.96, -48.74)
CIE-LCHlch(22.17, 57.75, 302.42°)
OKLaboklab(34.21% 0.023 -0.1405)
OKLCHoklch(34.21% 0.142 279.3)
XYZxyz(5.6818, 3.5638, 20.4630)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E277F #787F27
analogous
#274C7F #2E277F #5A277F
triadic
#2E277F #7F2E27 #277F2E
tetradic
#2E277F #7F274C #787F27 #277F5A
square
#2E277F #7F274C #787F27 #277F5A
split-complementary
#2E277F #7F5A27 #4C7F27
monochromatic
#0C0A21 #1D1950 #2E277F #3F35AE #5F55CB

Accessibility & contrast

On white

12.26
#2E277F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2E277F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E277F
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E277F#FFFFFF#000000##FFFFFF
##2E277F1.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#00327D
Tritanopia (blue-blind)
#003E4F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2e277f;
/* rgb */ color: rgb(46, 39, 127);
/* oklch */ color: oklch(34.2% 0.142 279.3);
Tailwind
colors: {
  custom: {
    50: '#7162a5',
    500: '#2e277f',
    950: '#000000',
  },
}
SCSS
$custom: #2e277f;
$custom-light: #7162a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e277f",
  "rgb": {
    "r": 46,
    "g": 39,
    "b": 127
  },
  "hsl": {
    "h": 244.773,
    "s": 53.012,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34214,
    "c": 0.14234,
    "h": 279.3
  },
  "luminance": 0.03564
}

Semantic roles & 50–950 ramp

primary
#2E277F
secondary
#A8B052
accent
#DC4BD1
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2E277F

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

Preview Lab → · Contrast checker → · Palette generator →

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