#2E42B2#2E42B2

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

Color values

HEX#2E42B2
RGBrgb(46, 66, 178)
HSLhsl(231, 59%, 44%)
HSVhsv(231, 74%, 70%)
CMYKcmyk(74.2%, 62.9%, 0%, 30.2%)
CIE-LABlab(33.33, 31.83, -61.69)
CIE-LCHlch(33.33, 69.42, 297.29°)
OKLaboklab(43.78% -0.0014 -0.1783)
OKLCHoklch(43.78% 0.178 269.5)
XYZxyz(11.1081, 7.6904, 43.0098)
Luminance0.0769 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E42B2 #B29E2E
analogous
#2E84B2 #2E42B2 #5C2EB2
triadic
#2E42B2 #B22E42 #42B22E
tetradic
#2E42B2 #B22E84 #B29E2E #2EB25C
square
#2E42B2 #B22E84 #B29E2E #2EB25C
split-complementary
#2E42B2 #B25C2E #84B22E
monochromatic
#151E51 #213081 #2E42B2 #4C60D1 #7D8CDD

Accessibility & contrast

On white

8.27
#2E42B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#2E42B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E42B2
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E42B2#FFFFFF#000000##FFFFFF
##2E42B21.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B6
Deuteranopia (green-blind)
#0048B0
Tritanopia (blue-blind)
#005F74
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2e42b2;
/* rgb */ color: rgb(46, 66, 178);
/* oklch */ color: oklch(43.8% 0.178 269.5);
Tailwind
colors: {
  custom: {
    50: '#7a76ca',
    500: '#2e42b2',
    950: '#000000',
  },
}
SCSS
$custom: #2e42b2;
$custom-light: #7a76ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2e42b2",
  "rgb": {
    "r": 46,
    "g": 66,
    "b": 178
  },
  "hsl": {
    "h": 230.909,
    "s": 58.929,
    "l": 43.922
  },
  "oklch": {
    "l": 0.43775,
    "c": 0.17829,
    "h": 269.5
  },
  "luminance": 0.07692
}

Semantic roles & 50–950 ramp

primary
#2E42B2
secondary
#C6BA76
accent
#CA46E2
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #2E42B2

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

Preview Lab → · Contrast checker → · Palette generator →

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