#2B45A8#2B45A8

#2B45A8 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.3% C 0.162 H 267.8°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#2B45A8
RGBrgb(43, 69, 168)
HSLhsl(228, 59%, 41%)
HSVhsv(228, 74%, 66%)
CMYKcmyk(74.4%, 58.9%, 0%, 34.1%)
CIE-LABlab(33.13, 25.77, -56.07)
CIE-LCHlch(33.13, 61.71, 294.69°)
OKLaboklab(43.33% -0.0063 -0.1618)
OKLCHoklch(43.33% 0.162 267.8)
XYZxyz(10.1898, 7.5959, 37.9673)
Luminance0.0760 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B45A8 #A88E2B
analogous
#2B84A8 #2B45A8 #502BA8
triadic
#2B45A8 #A82B45 #45A82B
tetradic
#2B45A8 #A82B84 #A88E2B #2BA850
square
#2B45A8 #A82B84 #A88E2B #2BA850
split-complementary
#2B45A8 #A8502B #84A82B
monochromatic
#121D47 #1F3177 #2B45A8 #425FCF #7288DB

Accessibility & contrast

On white

8.34
#2B45A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#2B45A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B45A8
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B45A8#FFFFFF#000000##FFFFFF
##2B45A81.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AB
Deuteranopia (green-blind)
#0048A6
Tritanopia (blue-blind)
#005E6F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2b45a8;
/* rgb */ color: rgb(43, 69, 168);
/* oklch */ color: oklch(43.3% 0.162 267.8);
Tailwind
colors: {
  custom: {
    50: '#7778c3',
    500: '#2b45a8',
    950: '#000000',
  },
}
SCSS
$custom: #2b45a8;
$custom-light: #7778c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2b45a8",
  "rgb": {
    "r": 43,
    "g": 69,
    "b": 168
  },
  "hsl": {
    "h": 227.52,
    "s": 59.242,
    "l": 41.373
  },
  "oklch": {
    "l": 0.43326,
    "c": 0.16192,
    "h": 267.8
  },
  "luminance": 0.07597
}

Semantic roles & 50–950 ramp

primary
#2B45A8
secondary
#C2B06C
accent
#C245E2
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2B45A8

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

Preview Lab → · Contrast checker → · Palette generator →

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