#2E277E#2E277E

#2E277E is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.1% C 0.141 H 279.5°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#2E277E
RGBrgb(46, 39, 126)
HSLhsl(245, 53%, 32%)
HSVhsv(245, 69%, 49%)
CMYKcmyk(63.5%, 69%, 0%, 50.6%)
CIE-LABlab(22.08, 30.62, -48.26)
CIE-LCHlch(22.08, 57.15, 302.39°)
OKLaboklab(34.12% 0.0232 -0.1391)
OKLCHoklch(34.12% 0.141 279.5)
XYZxyz(5.6169, 3.5378, 20.1215)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E277E #777E27
analogous
#274B7E #2E277E #5A277E
triadic
#2E277E #7E2E27 #277E2E
tetradic
#2E277E #7E274B #777E27 #277E5A
square
#2E277E #7E274B #777E27 #277E5A
split-complementary
#2E277E #7E5A27 #4B7E27
monochromatic
#0C0A21 #1D194F #2E277E #3F35AD #5E55CA

Accessibility & contrast

On white

12.30
#2E277E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E277E
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E277E#FFFFFF#000000##FFFFFF
##2E277E1.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003881
Deuteranopia (green-blind)
#00317C
Tritanopia (blue-blind)
#003E4F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2e277e;
/* rgb */ color: rgb(46, 39, 126);
/* oklch */ color: oklch(34.1% 0.141 279.5);
Tailwind
colors: {
  custom: {
    50: '#7162a4',
    500: '#2e277e',
    950: '#000000',
  },
}
SCSS
$custom: #2e277e;
$custom-light: #7162a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2e277e",
  "rgb": {
    "r": 46,
    "g": 39,
    "b": 126
  },
  "hsl": {
    "h": 244.828,
    "s": 52.727,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34119,
    "c": 0.14098,
    "h": 279.5
  },
  "luminance": 0.03538
}

Semantic roles & 50–950 ramp

primary
#2E277E
secondary
#A8AF52
accent
#DC4CD1
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2E277E

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

Preview Lab → · Contrast checker → · Palette generator →

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