#2B45A5#2B45A5

#2B45A5 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.1% C 0.158 H 267.7°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#2B45A5
RGBrgb(43, 69, 165)
HSLhsl(227, 59%, 41%)
HSVhsv(227, 74%, 65%)
CMYKcmyk(73.9%, 58.2%, 0%, 35.3%)
CIE-LABlab(32.89, 24.64, -54.66)
CIE-LCHlch(32.89, 59.96, 294.26°)
OKLaboklab(43.07% -0.0064 -0.1577)
OKLCHoklch(43.07% 0.158 267.7)
XYZxyz(9.9136, 7.4854, 36.5124)
Luminance0.0749 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B45A5 #A58B2B
analogous
#2B82A5 #2B45A5 #4E2BA5
triadic
#2B45A5 #A52B45 #45A52B
tetradic
#2B45A5 #A52B82 #A58B2B #2BA54E
square
#2B45A5 #A52B82 #A58B2B #2BA54E
split-complementary
#2B45A5 #A54E2B #82A52B
monochromatic
#121C44 #1E3174 #2B45A5 #405ECD #7187DA

Accessibility & contrast

On white

8.41
#2B45A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#2B45A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B45A5
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B45A5#FFFFFF#000000##FFFFFF
##2B45A51.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A8
Deuteranopia (green-blind)
#0048A3
Tritanopia (blue-blind)
#005D6E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2b45a5;
/* rgb */ color: rgb(43, 69, 165);
/* oklch */ color: oklch(43.1% 0.158 267.7);
Tailwind
colors: {
  custom: {
    50: '#7678c0',
    500: '#2b45a5',
    950: '#000000',
  },
}
SCSS
$custom: #2b45a5;
$custom-light: #7678c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2b45a5",
  "rgb": {
    "r": 43,
    "g": 69,
    "b": 165
  },
  "hsl": {
    "h": 227.213,
    "s": 58.654,
    "l": 40.784
  },
  "oklch": {
    "l": 0.43072,
    "c": 0.15779,
    "h": 267.7
  },
  "luminance": 0.07486
}

Semantic roles & 50–950 ramp

primary
#2B45A5
secondary
#C1AF6B
accent
#C146E2
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2B45A5

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

Preview Lab → · Contrast checker → · Palette generator →

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