#2E2F7E#2E2F7E

#2E2F7E is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.6% C 0.130 H 276.9°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#2E2F7E
RGBrgb(46, 47, 126)
HSLhsl(239, 47%, 34%)
HSVhsv(239, 63%, 49%)
CMYKcmyk(63.5%, 62.7%, 0%, 50.6%)
CIE-LABlab(24.06, 25.37, -45.03)
CIE-LCHlch(24.06, 51.68, 299.40°)
OKLaboklab(35.57% 0.0157 -0.1295)
OKLCHoklch(35.57% 0.13 276.9)
XYZxyz(5.9079, 4.1198, 20.2185)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2F7E #7E7D2E
analogous
#2E577E #2E2F7E #552E7E
triadic
#2E2F7E #7E2E2F #2F7E2E
tetradic
#2E2F7E #7E2E57 #7E7D2E #2E7E55
square
#2E2F7E #7E2E57 #7E7D2E #2E7E55
split-complementary
#2E2F7E #7E552E #577E2E
monochromatic
#0D0E24 #1E1E51 #2E2F7E #3E40AB #6162C5

Accessibility & contrast

On white

11.51
#2E2F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2E2F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2F7E
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2F7E#FFFFFF#000000##FFFFFF
##2E2F7E1.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D81
Deuteranopia (green-blind)
#00367C
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2e2f7e;
/* rgb */ color: rgb(46, 47, 126);
/* oklch */ color: oklch(35.6% 0.130 276.9);
Tailwind
colors: {
  custom: {
    50: '#7067a4',
    500: '#2e2f7e',
    950: '#000000',
  },
}
SCSS
$custom: #2e2f7e;
$custom-light: #7067a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2f7e",
  "rgb": {
    "r": 46,
    "g": 47,
    "b": 126
  },
  "hsl": {
    "h": 239.25,
    "s": 46.512,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35566,
    "c": 0.13047,
    "h": 276.9
  },
  "luminance": 0.0412
}

Semantic roles & 50–950 ramp

primary
#2E2F7E
secondary
#ACAB5C
accent
#D452D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2E2F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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