#2B42BF#2B42BF

#2B42BF is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.8% C 0.196 H 268.6°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#2B42BF
RGBrgb(43, 66, 191)
HSLhsl(231, 63%, 46%)
HSVhsv(231, 77%, 75%)
CMYKcmyk(77.5%, 65.4%, 0%, 25.1%)
CIE-LABlab(34.33, 36.25, -67.73)
CIE-LCHlch(34.33, 76.82, 298.16°)
OKLaboklab(44.83% -0.0048 -0.196)
OKLCHoklch(44.83% 0.196 268.6)
XYZxyz(12.3452, 8.1702, 50.2065)
Luminance0.0817 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B42BF #BFA82B
analogous
#2B8CBF #2B42BF #5E2BBF
triadic
#2B42BF #BF2B42 #42BF2B
tetradic
#2B42BF #BF2B8C #BFA82B #2BBF5E
square
#2B42BF #BF2B8C #BFA82B #2BBF5E
split-complementary
#2B42BF #BF5E2B #8CBF2B
monochromatic
#151F5B #20318D #2B42BF #5065D8 #8291E3

Accessibility & contrast

On white

7.97
#2B42BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#2B42BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B42BF
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B42BF#FFFFFF#000000##FFFFFF
##2B42BF1.007.972.637.97
#FFFFFF7.971.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.971.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: #2b42bf;
/* rgb */ color: rgb(43, 66, 191);
/* oklch */ color: oklch(44.8% 0.196 268.6);
Tailwind
colors: {
  custom: {
    50: '#7c76d3',
    500: '#2b42bf',
    950: '#000000',
  },
}
SCSS
$custom: #2b42bf;
$custom-light: #7c76d3;
$custom-dark: #000000;
JSON
{
  "hex": "#2b42bf",
  "rgb": {
    "r": 43,
    "g": 66,
    "b": 191
  },
  "hsl": {
    "h": 230.676,
    "s": 63.248,
    "l": 45.882
  },
  "oklch": {
    "l": 0.44827,
    "c": 0.19606,
    "h": 268.6
  },
  "luminance": 0.08172
}

Semantic roles & 50–950 ramp

primary
#2B42BF
secondary
#CCBF7A
accent
#CD42E6
background
#F8F7FD
surface
#EFEDFA
border
#CAC8D3
text
#0B0814
muted
#7C7B83

Preview Lab

Preview with #2B42BF

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

Preview Lab → · Contrast checker → · Palette generator →

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