#2B45A1#2B45A1

#2B45A1 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.7% C 0.152 H 267.5°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#2B45A1
RGBrgb(43, 69, 161)
HSLhsl(227, 58%, 40%)
HSVhsv(227, 73%, 63%)
CMYKcmyk(73.3%, 57.1%, 0%, 36.9%)
CIE-LABlab(32.57, 23.12, -52.77)
CIE-LCHlch(32.57, 57.61, 293.66°)
OKLaboklab(42.74% -0.0066 -0.1521)
OKLCHoklch(42.74% 0.152 267.5)
XYZxyz(9.5552, 7.3420, 34.6249)
Luminance0.0734 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B45A1 #A1872B
analogous
#2B80A1 #2B45A1 #4C2BA1
triadic
#2B45A1 #A12B45 #45A12B
tetradic
#2B45A1 #A12B80 #A1872B #2BA14C
square
#2B45A1 #A12B80 #A1872B #2BA14C
split-complementary
#2B45A1 #A14C2B #80A12B
monochromatic
#111C40 #1E3071 #2B45A1 #3E5DCB #6E85D8

Accessibility & contrast

On white

8.51
#2B45A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#2B45A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B45A1
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B45A1#FFFFFF#000000##FFFFFF
##2B45A11.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A4
Deuteranopia (green-blind)
#00479F
Tritanopia (blue-blind)
#005C6C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2b45a1;
/* rgb */ color: rgb(43, 69, 161);
/* oklch */ color: oklch(42.7% 0.152 267.5);
Tailwind
colors: {
  custom: {
    50: '#7578be',
    500: '#2b45a1',
    950: '#000000',
  },
}
SCSS
$custom: #2b45a1;
$custom-light: #7578be;
$custom-dark: #000000;
JSON
{
  "hex": "#2b45a1",
  "rgb": {
    "r": 43,
    "g": 69,
    "b": 161
  },
  "hsl": {
    "h": 226.78,
    "s": 57.843,
    "l": 40
  },
  "oklch": {
    "l": 0.42738,
    "c": 0.15223,
    "h": 267.5
  },
  "luminance": 0.07343
}

Semantic roles & 50–950 ramp

primary
#2B45A1
secondary
#BFAC69
accent
#BF47E1
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #2B45A1

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

Preview Lab → · Contrast checker → · Palette generator →

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