#2B42C6#2B42C6

#2B42C6 is a mid, highly saturated blue. Relative luminance 0.085; OKLCH L 45.5% C 0.205 H 268.6°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#2B42C6
RGBrgb(43, 66, 198)
HSLhsl(231, 64%, 47%)
HSVhsv(231, 78%, 78%)
CMYKcmyk(78.3%, 66.7%, 0%, 22.4%)
CIE-LABlab(34.97, 38.78, -70.77)
CIE-LCHlch(34.97, 80.70, 298.72°)
OKLaboklab(45.49% -0.0052 -0.2049)
OKLCHoklch(45.49% 0.205 268.6)
XYZxyz(13.1340, 8.4857, 54.3608)
Luminance0.0849 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B42C6 #C6AF2B
analogous
#2B8FC6 #2B42C6 #622BC6
triadic
#2B42C6 #C62B42 #42C62B
tetradic
#2B42C6 #C62B8F #C6AF2B #2BC662
square
#2B42C6 #C62B8F #C6AF2B #2BC662
split-complementary
#2B42C6 #C6622B #8FC62B
monochromatic
#152061 #203194 #2B42C6 #5468DA #8795E5

Accessibility & contrast

On white

7.79
#2B42C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#2B42C6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B42C6
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B42C6#FFFFFF#000000##FFFFFF
##2B42C61.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACA
Deuteranopia (green-blind)
#004BC4
Tritanopia (blue-blind)
#00667E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2b42c6;
/* rgb */ color: rgb(43, 66, 198);
/* oklch */ color: oklch(45.5% 0.205 268.6);
Tailwind
colors: {
  custom: {
    50: '#7e76d8',
    500: '#2b42c6',
    950: '#000000',
  },
}
SCSS
$custom: #2b42c6;
$custom-light: #7e76d8;
$custom-dark: #000000;
JSON
{
  "hex": "#2b42c6",
  "rgb": {
    "r": 43,
    "g": 66,
    "b": 198
  },
  "hsl": {
    "h": 231.097,
    "s": 64.315,
    "l": 47.255
  },
  "oklch": {
    "l": 0.4549,
    "c": 0.20497,
    "h": 268.6
  },
  "luminance": 0.08487
}

Semantic roles & 50–950 ramp

primary
#2B42C6
secondary
#CEC27F
accent
#CF40E7
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #2B42C6

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

Preview Lab → · Contrast checker → · Palette generator →

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