#2B42A8#2B42A8

#2B42A8 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.7% C 0.166 H 268.6°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#2B42A8
RGBrgb(43, 66, 168)
HSLhsl(229, 59%, 41%)
HSVhsv(229, 74%, 66%)
CMYKcmyk(74.4%, 60.7%, 0%, 34.1%)
CIE-LABlab(32.34, 27.77, -57.35)
CIE-LCHlch(32.34, 63.72, 295.83°)
OKLaboklab(42.74% -0.0041 -0.1656)
OKLCHoklch(42.74% 0.166 268.6)
XYZxyz(10.0099, 7.2361, 37.9074)
Luminance0.0724 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B42A8 #A8912B
analogous
#2B81A8 #2B42A8 #532BA8
triadic
#2B42A8 #A82B42 #42A82B
tetradic
#2B42A8 #A82B81 #A8912B #2BA853
square
#2B42A8 #A82B81 #A8912B #2BA853
split-complementary
#2B42A8 #A8532B #81A82B
monochromatic
#121C47 #1F2F77 #2B42A8 #425CCF #7286DB

Accessibility & contrast

On white

8.58
#2B42A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#2B42A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B42A8
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B42A8#FFFFFF#000000##FFFFFF
##2B42A81.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AB
Deuteranopia (green-blind)
#0046A6
Tritanopia (blue-blind)
#005C6E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2b42a8;
/* rgb */ color: rgb(43, 66, 168);
/* oklch */ color: oklch(42.7% 0.166 268.6);
Tailwind
colors: {
  custom: {
    50: '#7776c3',
    500: '#2b42a8',
    950: '#000000',
  },
}
SCSS
$custom: #2b42a8;
$custom-light: #7776c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2b42a8",
  "rgb": {
    "r": 43,
    "g": 66,
    "b": 168
  },
  "hsl": {
    "h": 228.96,
    "s": 59.242,
    "l": 41.373
  },
  "oklch": {
    "l": 0.42739,
    "c": 0.16566,
    "h": 268.6
  },
  "luminance": 0.07237
}

Semantic roles & 50–950 ramp

primary
#2B42A8
secondary
#C2B36C
accent
#C645E2
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2B42A8

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

Preview Lab → · Contrast checker → · Palette generator →

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