#2E2F7D#2E2F7D

#2E2F7D is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.5% C 0.129 H 277.0°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#2E2F7D
RGBrgb(46, 47, 125)
HSLhsl(239, 46%, 34%)
HSVhsv(239, 63%, 49%)
CMYKcmyk(63.2%, 62.4%, 0%, 51%)
CIE-LABlab(23.98, 25.01, -44.53)
CIE-LCHlch(23.98, 51.08, 299.32°)
OKLaboklab(35.48% 0.0158 -0.1281)
OKLCHoklch(35.48% 0.129 277)
XYZxyz(5.8437, 4.0941, 19.8804)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2F7D #7D7C2E
analogous
#2E567D #2E2F7D #542E7D
triadic
#2E2F7D #7D2E2F #2F7D2E
tetradic
#2E2F7D #7D2E56 #7D7C2E #2E7D54
square
#2E2F7D #7D2E56 #7D7C2E #2E7D54
split-complementary
#2E2F7D #7D542E #567D2E
monochromatic
#0D0D24 #1E1E50 #2E2F7D #3E40AA #6162C5

Accessibility & contrast

On white

11.54
#2E2F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E2F7D
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2F7D#FFFFFF#000000##FFFFFF
##2E2F7D1.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e2f7d;
/* rgb */ color: rgb(46, 47, 125);
/* oklch */ color: oklch(35.5% 0.129 277.0);
Tailwind
colors: {
  custom: {
    50: '#7067a3',
    500: '#2e2f7d',
    950: '#000000',
  },
}
SCSS
$custom: #2e2f7d;
$custom-light: #7067a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2f7d",
  "rgb": {
    "r": 46,
    "g": 47,
    "b": 125
  },
  "hsl": {
    "h": 239.241,
    "s": 46.199,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35479,
    "c": 0.12904,
    "h": 277
  },
  "luminance": 0.04095
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E2F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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