#2E42B3#2E42B3

#2E42B3 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.9% C 0.180 H 269.5°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#2E42B3
RGBrgb(46, 66, 179)
HSLhsl(231, 59%, 44%)
HSVhsv(231, 74%, 70%)
CMYKcmyk(74.3%, 63.1%, 0%, 29.8%)
CIE-LABlab(33.42, 32.19, -62.15)
CIE-LCHlch(33.42, 69.99, 297.39°)
OKLaboklab(43.86% -0.0014 -0.1796)
OKLCHoklch(43.86% 0.18 269.5)
XYZxyz(11.2088, 7.7308, 43.5405)
Luminance0.0773 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E42B3 #B39F2E
analogous
#2E85B3 #2E42B3 #5C2EB3
triadic
#2E42B3 #B32E42 #42B32E
tetradic
#2E42B3 #B32E85 #B39F2E #2EB35C
square
#2E42B3 #B32E85 #B39F2E #2EB35C
split-complementary
#2E42B3 #B35C2E #85B32E
monochromatic
#151E52 #213082 #2E42B3 #4D61D1 #7E8CDE

Accessibility & contrast

On white

8.25
#2E42B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#2E42B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E42B3
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E42B3#FFFFFF#000000##FFFFFF
##2E42B31.008.252.558.25
#FFFFFF8.251.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B7
Deuteranopia (green-blind)
#0048B1
Tritanopia (blue-blind)
#005F74
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2e42b3;
/* rgb */ color: rgb(46, 66, 179);
/* oklch */ color: oklch(43.9% 0.180 269.5);
Tailwind
colors: {
  custom: {
    50: '#7a76cb',
    500: '#2e42b3',
    950: '#000000',
  },
}
SCSS
$custom: #2e42b3;
$custom-light: #7a76cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2e42b3",
  "rgb": {
    "r": 46,
    "g": 66,
    "b": 179
  },
  "hsl": {
    "h": 230.977,
    "s": 59.111,
    "l": 44.118
  },
  "oklch": {
    "l": 0.43865,
    "c": 0.17961,
    "h": 269.5
  },
  "luminance": 0.07732
}

Semantic roles & 50–950 ramp

primary
#2E42B3
secondary
#C6BA76
accent
#CB46E2
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #2E42B3

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

Preview Lab → · Contrast checker → · Palette generator →

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