#2E2FAF#2E2FAF

#2E2FAF is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.3% C 0.196 H 273.0°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#2E2FAF
RGBrgb(46, 47, 175)
HSLhsl(240, 58%, 43%)
HSVhsv(240, 74%, 69%)
CMYKcmyk(73.7%, 73.1%, 0%, 31.4%)
CIE-LABlab(28.66, 42.57, -67.57)
CIE-LCHlch(28.66, 79.86, 302.21°)
OKLaboklab(40.3% 0.0101 -0.1955)
OKLCHoklch(40.3% 0.196 273)
XYZxyz(9.8785, 5.7080, 41.1303)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2FAF #AFAE2E
analogous
#2E6FAF #2E2FAF #6D2EAF
triadic
#2E2FAF #AF2E2F #2FAF2E
tetradic
#2E2FAF #AF2E6F #AFAE2E #2EAF6D
square
#2E2FAF #AF2E6F #AFAE2E #2EAF6D
split-complementary
#2E2FAF #AF6D2E #6FAF2E
monochromatic
#15154E #21227F #2E2FAF #4B4CD0 #7B7CDC

Accessibility & contrast

On white

9.80
#2E2FAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#2E2FAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2FAF
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2FAF#FFFFFF#000000##FFFFFF
##2E2FAF1.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB3
Deuteranopia (green-blind)
#003DAD
Tritanopia (blue-blind)
#00546C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2e2faf;
/* rgb */ color: rgb(46, 47, 175);
/* oklch */ color: oklch(40.3% 0.196 273.0);
Tailwind
colors: {
  custom: {
    50: '#7b69c8',
    500: '#2e2faf',
    950: '#000000',
  },
}
SCSS
$custom: #2e2faf;
$custom-light: #7b69c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2faf",
  "rgb": {
    "r": 46,
    "g": 47,
    "b": 175
  },
  "hsl": {
    "h": 239.535,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.40301,
    "c": 0.19576,
    "h": 273
  },
  "luminance": 0.05709
}

Semantic roles & 50–950 ramp

primary
#2E2FAF
secondary
#C5C474
accent
#E046E2
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2E2FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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