#2E42B1#2E42B1

#2E42B1 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.7% C 0.177 H 269.6°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#2E42B1
RGBrgb(46, 66, 177)
HSLhsl(231, 59%, 44%)
HSVhsv(231, 74%, 69%)
CMYKcmyk(74%, 62.7%, 0%, 30.6%)
CIE-LABlab(33.24, 31.46, -61.24)
CIE-LCHlch(33.24, 68.85, 297.19°)
OKLaboklab(43.69% -0.0014 -0.1769)
OKLCHoklch(43.69% 0.177 269.6)
XYZxyz(11.0080, 7.6504, 42.4830)
Luminance0.0765 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E42B1 #B19D2E
analogous
#2E83B1 #2E42B1 #5B2EB1
triadic
#2E42B1 #B12E42 #42B12E
tetradic
#2E42B1 #B12E83 #B19D2E #2EB15B
square
#2E42B1 #B12E83 #B19D2E #2EB15B
split-complementary
#2E42B1 #B15B2E #83B12E
monochromatic
#151E50 #213080 #2E42B1 #4C60D0 #7C8BDD

Accessibility & contrast

On white

8.30
#2E42B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#2E42B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E42B1
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E42B1#FFFFFF#000000##FFFFFF
##2E42B11.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B5
Deuteranopia (green-blind)
#0048AF
Tritanopia (blue-blind)
#005F73
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2e42b1;
/* rgb */ color: rgb(46, 66, 177);
/* oklch */ color: oklch(43.7% 0.177 269.6);
Tailwind
colors: {
  custom: {
    50: '#7a76c9',
    500: '#2e42b1',
    950: '#000000',
  },
}
SCSS
$custom: #2e42b1;
$custom-light: #7a76c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2e42b1",
  "rgb": {
    "r": 46,
    "g": 66,
    "b": 177
  },
  "hsl": {
    "h": 230.84,
    "s": 58.744,
    "l": 43.725
  },
  "oklch": {
    "l": 0.43685,
    "c": 0.17695,
    "h": 269.6
  },
  "luminance": 0.07652
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E42B1

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

Preview Lab → · Contrast checker → · Palette generator →

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