#2E3AAC#2E3AAC

#2E3AAC is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.8% C 0.180 H 271.3°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#2E3AAC
RGBrgb(46, 58, 172)
HSLhsl(234, 58%, 43%)
HSVhsv(234, 73%, 67%)
CMYKcmyk(73.3%, 66.3%, 0%, 32.5%)
CIE-LABlab(30.84, 34.79, -62.19)
CIE-LCHlch(30.84, 71.26, 299.23°)
OKLaboklab(41.79% 0.0042 -0.1798)
OKLCHoklch(41.79% 0.18 271.3)
XYZxyz(10.0836, 6.5845, 39.7612)
Luminance0.0659 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E3AAC #ACA02E
analogous
#2E79AC #2E3AAC #612EAC
triadic
#2E3AAC #AC2E3A #3AAC2E
tetradic
#2E3AAC #AC2E79 #ACA02E #2EAC61
square
#2E3AAC #AC2E79 #ACA02E #2EAC61
split-complementary
#2E3AAC #AC612E #79AC2E
monochromatic
#14194B #212A7C #2E3AAC #4956CE #7983DB

Accessibility & contrast

On white

9.06
#2E3AAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#2E3AAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E3AAC
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E3AAC#FFFFFF#000000##FFFFFF
##2E3AAC1.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB0
Deuteranopia (green-blind)
#0043AA
Tritanopia (blue-blind)
#00586E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2e3aac;
/* rgb */ color: rgb(46, 58, 172);
/* oklch */ color: oklch(41.8% 0.180 271.3);
Tailwind
colors: {
  custom: {
    50: '#7970c6',
    500: '#2e3aac',
    950: '#000000',
  },
}
SCSS
$custom: #2e3aac;
$custom-light: #7970c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2e3aac",
  "rgb": {
    "r": 46,
    "g": 58,
    "b": 172
  },
  "hsl": {
    "h": 234.286,
    "s": 57.798,
    "l": 42.745
  },
  "oklch": {
    "l": 0.41786,
    "c": 0.17984,
    "h": 271.3
  },
  "luminance": 0.06586
}

Semantic roles & 50–950 ramp

primary
#2E3AAC
secondary
#C3BC72
accent
#D247E1
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2E3AAC

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

Preview Lab → · Contrast checker → · Palette generator →

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