#2E2F99#2E2F99

#2E2F99 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.1% C 0.168 H 274.6°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#2E2F99
RGBrgb(46, 47, 153)
HSLhsl(239, 54%, 39%)
HSVhsv(239, 70%, 60%)
CMYKcmyk(69.9%, 69.3%, 0%, 40%)
CIE-LABlab(26.49, 35.00, -57.84)
CIE-LCHlch(26.49, 67.61, 301.18°)
OKLaboklab(38.08% 0.0134 -0.1671)
OKLCHoklch(38.08% 0.168 274.6)
XYZxyz(7.8911, 4.9130, 30.6633)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2F99 #99982E
analogous
#2E6599 #2E2F99 #632E99
triadic
#2E2F99 #992E2F #2F992E
tetradic
#2E2F99 #992E65 #99982E #2E9963
square
#2E2F99 #992E65 #99982E #2E9963
split-complementary
#2E2F99 #99632E #65992E
monochromatic
#12123B #20216A #2E2F99 #3F40C5 #6E6FD3

Accessibility & contrast

On white

10.59
#2E2F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#2E2F99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2F99
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2F99#FFFFFF#000000##FFFFFF
##2E2F991.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449C
Deuteranopia (green-blind)
#003A97
Tritanopia (blue-blind)
#004C60
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2e2f99;
/* rgb */ color: rgb(46, 47, 153);
/* oklch */ color: oklch(38.1% 0.168 274.6);
Tailwind
colors: {
  custom: {
    50: '#7668b8',
    500: '#2e2f99',
    950: '#000000',
  },
}
SCSS
$custom: #2e2f99;
$custom-light: #7668b8;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2f99",
  "rgb": {
    "r": 46,
    "g": 47,
    "b": 153
  },
  "hsl": {
    "h": 239.439,
    "s": 53.769,
    "l": 39.02
  },
  "oklch": {
    "l": 0.38081,
    "c": 0.16765,
    "h": 274.6
  },
  "luminance": 0.04914
}

Semantic roles & 50–950 ramp

primary
#2E2F99
secondary
#BBBA68
accent
#DC4BDD
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2E2F99

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

Preview Lab → · Contrast checker → · Palette generator →

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