#2B45A0#2B45A0

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

Color values

HEX#2B45A0
RGBrgb(43, 69, 160)
HSLhsl(227, 58%, 40%)
HSVhsv(227, 73%, 63%)
CMYKcmyk(73.1%, 56.9%, 0%, 37.3%)
CIE-LABlab(32.50, 22.74, -52.29)
CIE-LCHlch(32.50, 57.02, 293.51°)
OKLaboklab(42.66% -0.0066 -0.1507)
OKLCHoklch(42.66% 0.151 267.5)
XYZxyz(9.4673, 7.3069, 34.1623)
Luminance0.0731 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B45A0 #A0862B
analogous
#2B7FA0 #2B45A0 #4C2BA0
triadic
#2B45A0 #A02B45 #45A02B
tetradic
#2B45A0 #A02B7F #A0862B #2BA04C
square
#2B45A0 #A02B7F #A0862B #2BA04C
split-complementary
#2B45A0 #A04C2B #7FA02B
monochromatic
#111B40 #1E3070 #2B45A0 #3D5DCB #6E85D8

Accessibility & contrast

On white

8.53
#2B45A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#2B45A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B45A0
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B45A0#FFFFFF#000000##FFFFFF
##2B45A01.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A3
Deuteranopia (green-blind)
#00479E
Tritanopia (blue-blind)
#005B6B
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2b45a0;
/* rgb */ color: rgb(43, 69, 160);
/* oklch */ color: oklch(42.7% 0.151 267.5);
Tailwind
colors: {
  custom: {
    50: '#7578bd',
    500: '#2b45a0',
    950: '#000000',
  },
}
SCSS
$custom: #2b45a0;
$custom-light: #7578bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2b45a0",
  "rgb": {
    "r": 43,
    "g": 69,
    "b": 160
  },
  "hsl": {
    "h": 226.667,
    "s": 57.635,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42655,
    "c": 0.15084,
    "h": 267.5
  },
  "luminance": 0.07308
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2B45A0

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

Preview Lab → · Contrast checker → · Palette generator →

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