#2B46AB#2B46AB

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

Color values

HEX#2B46AB
RGBrgb(43, 70, 171)
HSLhsl(227, 60%, 42%)
HSVhsv(227, 75%, 67%)
CMYKcmyk(74.9%, 59.1%, 0%, 32.9%)
CIE-LABlab(33.63, 26.24, -57.04)
CIE-LCHlch(33.63, 62.79, 294.71°)
OKLaboklab(43.78% -0.007 -0.1646)
OKLCHoklch(43.78% 0.165 267.6)
XYZxyz(10.5346, 7.8330, 39.4769)
Luminance0.0783 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B46AB #AB902B
analogous
#2B86AB #2B46AB #502BAB
triadic
#2B46AB #AB2B46 #46AB2B
tetradic
#2B46AB #AB2B86 #AB902B #2BAB50
square
#2B46AB #AB2B86 #AB902B #2BAB50
split-complementary
#2B46AB #AB502B #86AB2B
monochromatic
#121E49 #1F327A #2B46AB #4361D0 #748ADC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2B46AB#FFFFFF#000000##FFFFFF
##2B46AB1.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)
#0055AE
Deuteranopia (green-blind)
#0049A9
Tritanopia (blue-blind)
#005F71
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2b46ab;
/* rgb */ color: rgb(43, 70, 171);
/* oklch */ color: oklch(43.8% 0.165 267.6);
Tailwind
colors: {
  custom: {
    50: '#7779c5',
    500: '#2b46ab',
    950: '#000000',
  },
}
SCSS
$custom: #2b46ab;
$custom-light: #7779c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b46ab",
  "rgb": {
    "r": 43,
    "g": 70,
    "b": 171
  },
  "hsl": {
    "h": 227.344,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.43779,
    "c": 0.16478,
    "h": 267.6
  },
  "luminance": 0.07834
}

Semantic roles & 50–950 ramp

primary
#2B46AB
secondary
#C4B26E
accent
#C245E3
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2B46AB

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

Preview Lab → · Contrast checker → · Palette generator →

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