#2E42BC#2E42BC

#2E42BC is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.7% C 0.191 H 269.5°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#2E42BC
RGBrgb(46, 66, 188)
HSLhsl(232, 61%, 46%)
HSVhsv(232, 76%, 74%)
CMYKcmyk(75.5%, 64.9%, 0%, 26.3%)
CIE-LABlab(34.20, 35.47, -66.17)
CIE-LCHlch(34.20, 75.08, 298.19°)
OKLaboklab(44.69% -0.0018 -0.1914)
OKLCHoklch(44.69% 0.191 269.5)
XYZxyz(12.1489, 8.1068, 48.4917)
Luminance0.0811 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E42BC #BCA82E
analogous
#2E89BC #2E42BC #612EBC
triadic
#2E42BC #BC2E42 #42BC2E
tetradic
#2E42BC #BC2E89 #BCA82E #2EBC61
square
#2E42BC #BC2E89 #BCA82E #2EBC61
split-complementary
#2E42BC #BC612E #89BC2E
monochromatic
#161F5A #22318B #2E42BC #5265D5 #8491E1

Accessibility & contrast

On white

8.01
#2E42BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#2E42BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E42BC
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E42BC#FFFFFF#000000##FFFFFF
##2E42BC1.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C0
Deuteranopia (green-blind)
#004ABA
Tritanopia (blue-blind)
#006279
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2e42bc;
/* rgb */ color: rgb(46, 66, 188);
/* oklch */ color: oklch(44.7% 0.191 269.5);
Tailwind
colors: {
  custom: {
    50: '#7d76d1',
    500: '#2e42bc',
    950: '#000000',
  },
}
SCSS
$custom: #2e42bc;
$custom-light: #7d76d1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e42bc",
  "rgb": {
    "r": 46,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 231.549,
    "s": 60.684,
    "l": 45.882
  },
  "oklch": {
    "l": 0.44687,
    "c": 0.1914,
    "h": 269.5
  },
  "luminance": 0.08108
}

Semantic roles & 50–950 ramp

primary
#2E42BC
secondary
#CABF7C
accent
#CD44E4
background
#F8F7FD
surface
#EFEDFA
border
#CAC8D3
text
#0B0814
muted
#7C7B83

Preview Lab

Preview with #2E42BC

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

Preview Lab → · Contrast checker → · Palette generator →

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