#2E279C#2E279C

#2E279C is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.1% C 0.180 H 275.7°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#2E279C
RGBrgb(46, 39, 156)
HSLhsl(244, 60%, 38%)
HSVhsv(244, 75%, 61%)
CMYKcmyk(70.5%, 75%, 0%, 38.8%)
CIE-LABlab(25.05, 40.82, -62.04)
CIE-LCHlch(25.05, 74.26, 303.34°)
OKLaboklab(37.14% 0.0179 -0.1793)
OKLCHoklch(37.14% 0.18 275.7)
XYZxyz(7.8510, 4.4315, 31.8877)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E279C #959C27
analogous
#275A9C #2E279C #68279C
triadic
#2E279C #9C2E27 #279C2E
tetradic
#2E279C #9C275A #959C27 #279C68
square
#2E279C #9C275A #959C27 #279C68
split-complementary
#2E279C #9C6827 #5A9C27
monochromatic
#110F3A #201B6B #2E279C #3D34CC #6C65D8

Accessibility & contrast

On white

11.13
#2E279C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#2E279C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E279C
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E279C#FFFFFF#000000##FFFFFF
##2E279C1.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419F
Deuteranopia (green-blind)
#00369A
Tritanopia (blue-blind)
#00495F
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2e279c;
/* rgb */ color: rgb(46, 39, 156);
/* oklch */ color: oklch(37.1% 0.180 275.7);
Tailwind
colors: {
  custom: {
    50: '#7763ba',
    500: '#2e279c',
    950: '#000000',
  },
}
SCSS
$custom: #2e279c;
$custom-light: #7763ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2e279c",
  "rgb": {
    "r": 46,
    "g": 39,
    "b": 156
  },
  "hsl": {
    "h": 243.59,
    "s": 60,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37143,
    "c": 0.18023,
    "h": 275.7
  },
  "luminance": 0.04432
}

Semantic roles & 50–950 ramp

primary
#2E279C
secondary
#B9BE61
accent
#E345DA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2E279C

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

Preview Lab → · Contrast checker → · Palette generator →

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