#2B45A4#2B45A4

#2B45A4 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.0% C 0.156 H 267.6°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#2B45A4
RGBrgb(43, 69, 164)
HSLhsl(227, 58%, 41%)
HSVhsv(227, 74%, 64%)
CMYKcmyk(73.8%, 57.9%, 0%, 35.7%)
CIE-LABlab(32.81, 24.26, -54.19)
CIE-LCHlch(32.81, 59.37, 294.12°)
OKLaboklab(42.99% -0.0065 -0.1563)
OKLCHoklch(42.99% 0.156 267.6)
XYZxyz(9.8229, 7.4491, 36.0349)
Luminance0.0745 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B45A4 #A48A2B
analogous
#2B82A4 #2B45A4 #4D2BA4
triadic
#2B45A4 #A42B45 #45A42B
tetradic
#2B45A4 #A42B82 #A48A2B #2BA44D
square
#2B45A4 #A42B82 #A48A2B #2BA44D
split-complementary
#2B45A4 #A44D2B #82A42B
monochromatic
#121C43 #1E3174 #2B45A4 #3F5ECD #7087D9

Accessibility & contrast

On white

8.43
#2B45A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#2B45A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B45A4
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B45A4#FFFFFF#000000##FFFFFF
##2B45A41.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A7
Deuteranopia (green-blind)
#0048A2
Tritanopia (blue-blind)
#005D6D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2b45a4;
/* rgb */ color: rgb(43, 69, 164);
/* oklch */ color: oklch(43.0% 0.156 267.6);
Tailwind
colors: {
  custom: {
    50: '#7678c0',
    500: '#2b45a4',
    950: '#000000',
  },
}
SCSS
$custom: #2b45a4;
$custom-light: #7678c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2b45a4",
  "rgb": {
    "r": 43,
    "g": 69,
    "b": 164
  },
  "hsl": {
    "h": 227.107,
    "s": 58.454,
    "l": 40.588
  },
  "oklch": {
    "l": 0.42988,
    "c": 0.1564,
    "h": 267.6
  },
  "luminance": 0.0745
}

Semantic roles & 50–950 ramp

primary
#2B45A4
secondary
#C1AE6A
accent
#C046E2
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2B45A4

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

Preview Lab → · Contrast checker → · Palette generator →

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