#2E3AAB#2E3AAB

#2E3AAB is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.7% C 0.179 H 271.4°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#2E3AAB
RGBrgb(46, 58, 171)
HSLhsl(234, 58%, 43%)
HSVhsv(234, 73%, 67%)
CMYKcmyk(73.1%, 66.1%, 0%, 32.9%)
CIE-LABlab(30.75, 34.44, -61.74)
CIE-LCHlch(30.75, 70.70, 299.15°)
OKLaboklab(41.69% 0.0042 -0.1785)
OKLCHoklch(41.69% 0.179 271.4)
XYZxyz(9.9880, 6.5462, 39.2573)
Luminance0.0655 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E3AAB #AB9F2E
analogous
#2E79AB #2E3AAB #602EAB
triadic
#2E3AAB #AB2E3A #3AAB2E
tetradic
#2E3AAB #AB2E79 #AB9F2E #2EAB60
square
#2E3AAB #AB2E79 #AB9F2E #2EAB60
split-complementary
#2E3AAB #AB602E #79AB2E
monochromatic
#14194B #212A7B #2E3AAB #4855CE #7982DB

Accessibility & contrast

On white

9.09
#2E3AAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#2E3AAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E3AAB
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E3AAB#FFFFFF#000000##FFFFFF
##2E3AAB1.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAF
Deuteranopia (green-blind)
#0043A9
Tritanopia (blue-blind)
#00586D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2e3aab;
/* rgb */ color: rgb(46, 58, 171);
/* oklch */ color: oklch(41.7% 0.179 271.4);
Tailwind
colors: {
  custom: {
    50: '#7970c5',
    500: '#2e3aab',
    950: '#000000',
  },
}
SCSS
$custom: #2e3aab;
$custom-light: #7970c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e3aab",
  "rgb": {
    "r": 46,
    "g": 58,
    "b": 171
  },
  "hsl": {
    "h": 234.24,
    "s": 57.604,
    "l": 42.549
  },
  "oklch": {
    "l": 0.41691,
    "c": 0.17853,
    "h": 271.4
  },
  "luminance": 0.06547
}

Semantic roles & 50–950 ramp

primary
#2E3AAB
secondary
#C3BB72
accent
#D247E1
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2E3AAB

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

Preview Lab → · Contrast checker → · Palette generator →

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