#2B42B3#2B42B3

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

Color values

HEX#2B42B3
RGBrgb(43, 66, 179)
HSLhsl(230, 61%, 44%)
HSVhsv(230, 76%, 70%)
CMYKcmyk(76%, 63.1%, 0%, 29.8%)
CIE-LABlab(33.27, 31.86, -62.39)
CIE-LCHlch(33.27, 70.05, 297.05°)
OKLaboklab(43.72% -0.0043 -0.1804)
OKLCHoklch(43.72% 0.18 268.6)
XYZxyz(11.0783, 7.6635, 43.5344)
Luminance0.0766 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B42B3 #B39C2B
analogous
#2B86B3 #2B42B3 #582BB3
triadic
#2B42B3 #B32B42 #42B32B
tetradic
#2B42B3 #B32B86 #B39C2B #2BB358
square
#2B42B3 #B32B86 #B39C2B #2BB358
split-complementary
#2B42B3 #B3582B #86B32B
monochromatic
#131E50 #1F3082 #2B42B3 #4860D3 #798BDF

Accessibility & contrast

On white

8.29
#2B42B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B42B3
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B42B3#FFFFFF#000000##FFFFFF
##2B42B31.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B7
Deuteranopia (green-blind)
#0048B1
Tritanopia (blue-blind)
#005F74
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2b42b3;
/* rgb */ color: rgb(43, 66, 179);
/* oklch */ color: oklch(43.7% 0.180 268.6);
Tailwind
colors: {
  custom: {
    50: '#7976cb',
    500: '#2b42b3',
    950: '#000000',
  },
}
SCSS
$custom: #2b42b3;
$custom-light: #7976cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2b42b3",
  "rgb": {
    "r": 43,
    "g": 66,
    "b": 179
  },
  "hsl": {
    "h": 229.853,
    "s": 61.261,
    "l": 43.529
  },
  "oklch": {
    "l": 0.43719,
    "c": 0.18042,
    "h": 268.6
  },
  "luminance": 0.07665
}

Semantic roles & 50–950 ramp

primary
#2B42B3
secondary
#C7B973
accent
#C943E4
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #2B42B3

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

Preview Lab → · Contrast checker → · Palette generator →

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