#2E2F9E#2E2F9E

#2E2F9E is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.6% C 0.174 H 274.2°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#2E2F9E
RGBrgb(46, 47, 158)
HSLhsl(239, 55%, 40%)
HSVhsv(239, 71%, 62%)
CMYKcmyk(70.9%, 70.3%, 0%, 38%)
CIE-LABlab(26.97, 36.74, -60.11)
CIE-LCHlch(26.97, 70.45, 301.44°)
OKLaboklab(38.57% 0.0127 -0.1737)
OKLCHoklch(38.57% 0.174 274.2)
XYZxyz(8.3127, 5.0817, 32.8839)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2F9E #9E9D2E
analogous
#2E679E #2E2F9E #652E9E
triadic
#2E2F9E #9E2E2F #2F9E2E
tetradic
#2E2F9E #9E2E67 #9E9D2E #2E9E65
square
#2E2F9E #9E2E67 #9E9D2E #2E9E65
split-complementary
#2E2F9E #9E652E #679E2E
monochromatic
#12133F #20216F #2E2F9E #4143C8 #7172D6

Accessibility & contrast

On white

10.41
#2E2F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#2E2F9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2F9E
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2F9E#FFFFFF#000000##FFFFFF
##2E2F9E1.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A1
Deuteranopia (green-blind)
#003A9C
Tritanopia (blue-blind)
#004D63
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2e2f9e;
/* rgb */ color: rgb(46, 47, 158);
/* oklch */ color: oklch(38.6% 0.174 274.2);
Tailwind
colors: {
  custom: {
    50: '#7768bc',
    500: '#2e2f9e',
    950: '#000000',
  },
}
SCSS
$custom: #2e2f9e;
$custom-light: #7768bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2f9e",
  "rgb": {
    "r": 46,
    "g": 47,
    "b": 158
  },
  "hsl": {
    "h": 239.464,
    "s": 54.902,
    "l": 40
  },
  "oklch": {
    "l": 0.38574,
    "c": 0.17419,
    "h": 274.2
  },
  "luminance": 0.05082
}

Semantic roles & 50–950 ramp

primary
#2E2F9E
secondary
#BDBC6B
accent
#DD4ADE
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2E2F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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