#2B45B7#2B45B7

#2B45B7 is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.6% C 0.182 H 268.0°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#2B45B7
RGBrgb(43, 69, 183)
HSLhsl(229, 62%, 44%)
HSVhsv(229, 77%, 72%)
CMYKcmyk(76.5%, 62.3%, 0%, 28.2%)
CIE-LABlab(34.37, 31.39, -62.96)
CIE-LCHlch(34.37, 70.35, 296.50°)
OKLaboklab(44.64% -0.0063 -0.182)
OKLCHoklch(44.64% 0.182 268)
XYZxyz(11.6687, 8.1874, 45.7559)
Luminance0.0819 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B45B7 #B79D2B
analogous
#2B8BB7 #2B45B7 #572BB7
triadic
#2B45B7 #B72B45 #45B72B
tetradic
#2B45B7 #B72B8B #B79D2B #2BB757
square
#2B45B7 #B72B8B #B79D2B #2BB757
split-complementary
#2B45B7 #B7572B #8BB72B
monochromatic
#142054 #1F3285 #2B45B7 #4B64D5 #7C8FE0

Accessibility & contrast

On white

7.96
#2B45B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#2B45B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B45B7
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B45B7#FFFFFF#000000##FFFFFF
##2B45B71.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BB
Deuteranopia (green-blind)
#004AB5
Tritanopia (blue-blind)
#006277
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2b45b7;
/* rgb */ color: rgb(43, 69, 183);
/* oklch */ color: oklch(44.6% 0.182 268.0);
Tailwind
colors: {
  custom: {
    50: '#7a78ce',
    500: '#2b45b7',
    950: '#000000',
  },
}
SCSS
$custom: #2b45b7;
$custom-light: #7a78ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2b45b7",
  "rgb": {
    "r": 43,
    "g": 69,
    "b": 183
  },
  "hsl": {
    "h": 228.857,
    "s": 61.947,
    "l": 44.314
  },
  "oklch": {
    "l": 0.44637,
    "c": 0.18212,
    "h": 268
  },
  "luminance": 0.08189
}

Semantic roles & 50–950 ramp

primary
#2B45B7
secondary
#C9B975
accent
#C743E5
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #2B45B7

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

Preview Lab → · Contrast checker → · Palette generator →

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