#2E2F9D#2E2F9D

#2E2F9D is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.5% C 0.173 H 274.3°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#2E2F9D
RGBrgb(46, 47, 157)
HSLhsl(239, 55%, 40%)
HSVhsv(239, 71%, 62%)
CMYKcmyk(70.7%, 70.1%, 0%, 38.4%)
CIE-LABlab(26.87, 36.39, -59.66)
CIE-LCHlch(26.87, 69.88, 301.39°)
OKLaboklab(38.48% 0.0129 -0.1724)
OKLCHoklch(38.48% 0.173 274.3)
XYZxyz(8.2270, 5.0474, 32.4324)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2F9D #9D9C2E
analogous
#2E679D #2E2F9D #642E9D
triadic
#2E2F9D #9D2E2F #2F9D2E
tetradic
#2E2F9D #9D2E67 #9D9C2E #2E9D64
square
#2E2F9D #9D2E67 #9D9C2E #2E9D64
split-complementary
#2E2F9D #9D642E #679D2E
monochromatic
#12133E #20216E #2E2F9D #4142C7 #7071D5

Accessibility & contrast

On white

10.45
#2E2F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#2E2F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2F9D
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2F9D#FFFFFF#000000##FFFFFF
##2E2F9D1.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A0
Deuteranopia (green-blind)
#003A9B
Tritanopia (blue-blind)
#004D62
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2e2f9d;
/* rgb */ color: rgb(46, 47, 157);
/* oklch */ color: oklch(38.5% 0.173 274.3);
Tailwind
colors: {
  custom: {
    50: '#7768bb',
    500: '#2e2f9d',
    950: '#000000',
  },
}
SCSS
$custom: #2e2f9d;
$custom-light: #7768bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2f9d",
  "rgb": {
    "r": 46,
    "g": 47,
    "b": 157
  },
  "hsl": {
    "h": 239.459,
    "s": 54.68,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38475,
    "c": 0.17288,
    "h": 274.3
  },
  "luminance": 0.05048
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E2F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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