#2B42B7#2B42B7

#2B42B7 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 44.1% C 0.186 H 268.6°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#2B42B7
RGBrgb(43, 66, 183)
HSLhsl(230, 62%, 44%)
HSVhsv(230, 77%, 72%)
CMYKcmyk(76.5%, 63.9%, 0%, 28.2%)
CIE-LABlab(33.62, 33.33, -64.19)
CIE-LCHlch(33.62, 72.33, 297.44°)
OKLaboklab(44.08% -0.0044 -0.1856)
OKLCHoklch(44.08% 0.186 268.6)
XYZxyz(11.4888, 7.8276, 45.6960)
Luminance0.0783 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B42B7 #B7A02B
analogous
#2B88B7 #2B42B7 #5A2BB7
triadic
#2B42B7 #B72B42 #42B72B
tetradic
#2B42B7 #B72B88 #B7A02B #2BB75A
square
#2B42B7 #B72B88 #B7A02B #2BB75A
split-complementary
#2B42B7 #B75A2B #88B72B
monochromatic
#141E54 #1F3085 #2B42B7 #4B61D5 #7C8DE0

Accessibility & contrast

On white

8.18
#2B42B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#2B42B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B42B7
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B42B7#FFFFFF#000000##FFFFFF
##2B42B71.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BB
Deuteranopia (green-blind)
#0049B5
Tritanopia (blue-blind)
#006176
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2b42b7;
/* rgb */ color: rgb(43, 66, 183);
/* oklch */ color: oklch(44.1% 0.186 268.6);
Tailwind
colors: {
  custom: {
    50: '#7a76ce',
    500: '#2b42b7',
    950: '#000000',
  },
}
SCSS
$custom: #2b42b7;
$custom-light: #7a76ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2b42b7",
  "rgb": {
    "r": 43,
    "g": 66,
    "b": 183
  },
  "hsl": {
    "h": 230.143,
    "s": 61.947,
    "l": 44.314
  },
  "oklch": {
    "l": 0.44084,
    "c": 0.18568,
    "h": 268.6
  },
  "luminance": 0.07829
}

Semantic roles & 50–950 ramp

primary
#2B42B7
secondary
#C9BB75
accent
#CA43E5
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #2B42B7

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

Preview Lab → · Contrast checker → · Palette generator →

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