#2B45AB#2B45AB

#2B45AB is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.6% C 0.166 H 267.8°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#2B45AB
RGBrgb(43, 69, 171)
HSLhsl(228, 60%, 42%)
HSVhsv(228, 75%, 67%)
CMYKcmyk(74.9%, 59.6%, 0%, 32.9%)
CIE-LABlab(33.37, 26.90, -57.47)
CIE-LCHlch(33.37, 63.45, 295.09°)
OKLaboklab(43.58% -0.0063 -0.1659)
OKLCHoklch(43.58% 0.166 267.8)
XYZxyz(10.4725, 7.7090, 39.4562)
Luminance0.0771 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B45AB #AB912B
analogous
#2B85AB #2B45AB #512BAB
triadic
#2B45AB #AB2B45 #45AB2B
tetradic
#2B45AB #AB2B85 #AB912B #2BAB51
square
#2B45AB #AB2B85 #AB912B #2BAB51
split-complementary
#2B45AB #AB512B #85AB2B
monochromatic
#121E49 #1F317A #2B45AB #4360D0 #7489DC

Accessibility & contrast

On white

8.26
#2B45AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#2B45AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B45AB
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B45AB#FFFFFF#000000##FFFFFF
##2B45AB1.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AE
Deuteranopia (green-blind)
#0049A9
Tritanopia (blue-blind)
#005F71
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2b45ab;
/* rgb */ color: rgb(43, 69, 171);
/* oklch */ color: oklch(43.6% 0.166 267.8);
Tailwind
colors: {
  custom: {
    50: '#7778c5',
    500: '#2b45ab',
    950: '#000000',
  },
}
SCSS
$custom: #2b45ab;
$custom-light: #7778c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b45ab",
  "rgb": {
    "r": 43,
    "g": 69,
    "b": 171
  },
  "hsl": {
    "h": 227.813,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.43583,
    "c": 0.16602,
    "h": 267.8
  },
  "luminance": 0.0771
}

Semantic roles & 50–950 ramp

primary
#2B45AB
secondary
#C4B26E
accent
#C345E3
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2B45AB

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

Preview Lab → · Contrast checker → · Palette generator →

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