#2E42BF#2E42BF

#2E42BF is a dark, vivid blue. Relative luminance 0.082; OKLCH L 45.0% C 0.195 H 269.4°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#2E42BF
RGBrgb(46, 66, 191)
HSLhsl(232, 61%, 46%)
HSVhsv(232, 76%, 75%)
CMYKcmyk(75.9%, 65.4%, 0%, 25.1%)
CIE-LABlab(34.47, 36.55, -67.50)
CIE-LCHlch(34.47, 76.76, 298.44°)
OKLaboklab(44.97% -0.002 -0.1953)
OKLCHoklch(44.97% 0.195 269.4)
XYZxyz(12.4757, 8.2375, 50.2126)
Luminance0.0824 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E42BF #BFAB2E
analogous
#2E8BBF #2E42BF #632EBF
triadic
#2E42BF #BF2E42 #42BF2E
tetradic
#2E42BF #BF2E8B #BFAB2E #2EBF63
square
#2E42BF #BF2E8B #BFAB2E #2EBF63
split-complementary
#2E42BF #BF632E #8BBF2E
monochromatic
#16205C #22318E #2E42BF #5466D6 #8692E2

Accessibility & contrast

On white

7.93
#2E42BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#2E42BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E42BF
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E42BF#FFFFFF#000000##FFFFFF
##2E42BF1.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C3
Deuteranopia (green-blind)
#004ABD
Tritanopia (blue-blind)
#00637A
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2e42bf;
/* rgb */ color: rgb(46, 66, 191);
/* oklch */ color: oklch(45.0% 0.195 269.4);
Tailwind
colors: {
  custom: {
    50: '#7d76d3',
    500: '#2e42bf',
    950: '#000000',
  },
}
SCSS
$custom: #2e42bf;
$custom-light: #7d76d3;
$custom-dark: #000000;
JSON
{
  "hex": "#2e42bf",
  "rgb": {
    "r": 46,
    "g": 66,
    "b": 191
  },
  "hsl": {
    "h": 231.724,
    "s": 61.181,
    "l": 46.471
  },
  "oklch": {
    "l": 0.44966,
    "c": 0.19528,
    "h": 269.4
  },
  "luminance": 0.08239
}

Semantic roles & 50–950 ramp

primary
#2E42BF
secondary
#CBC07E
accent
#CE44E4
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0B0814
muted
#7C7B83

Preview Lab

Preview with #2E42BF

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

Preview Lab → · Contrast checker → · Palette generator →

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