#2E277A#2E277A

#2E277A is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.7% C 0.135 H 280.1°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#2E277A
RGBrgb(46, 39, 122)
HSLhsl(245, 52%, 32%)
HSVhsv(245, 68%, 48%)
CMYKcmyk(62.3%, 68%, 0%, 52.2%)
CIE-LABlab(21.71, 29.23, -46.32)
CIE-LCHlch(21.71, 54.77, 302.25°)
OKLaboklab(33.74% 0.0237 -0.1334)
OKLCHoklch(33.74% 0.135 280.1)
XYZxyz(5.3640, 3.4366, 18.7893)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E277A #737A27
analogous
#274A7A #2E277A #58277A
triadic
#2E277A #7A2E27 #277A2E
tetradic
#2E277A #7A274A #737A27 #277A58
square
#2E277A #7A274A #737A27 #277A58
split-complementary
#2E277A #7A5827 #4A7A27
monochromatic
#0B091D #1D184C #2E277A #3F36A8 #5D53C8

Accessibility & contrast

On white

12.45
#2E277A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2E277A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E277A
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E277A#FFFFFF#000000##FFFFFF
##2E277A1.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377D
Deuteranopia (green-blind)
#003178
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2e277a;
/* rgb */ color: rgb(46, 39, 122);
/* oklch */ color: oklch(33.7% 0.135 280.1);
Tailwind
colors: {
  custom: {
    50: '#7062a1',
    500: '#2e277a',
    950: '#000000',
  },
}
SCSS
$custom: #2e277a;
$custom-light: #7062a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e277a",
  "rgb": {
    "r": 46,
    "g": 39,
    "b": 122
  },
  "hsl": {
    "h": 245.06,
    "s": 51.553,
    "l": 31.569
  },
  "oklch": {
    "l": 0.3374,
    "c": 0.13545,
    "h": 280.1
  },
  "luminance": 0.03437
}

Semantic roles & 50–950 ramp

primary
#2E277A
secondary
#A4AC51
accent
#DB4DCF
background
#F7F5FA
surface
#EDEAF3
border
#C8C6CD
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2E277A

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

Preview Lab → · Contrast checker → · Palette generator →

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