#2B45A3#2B45A3

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

Color values

HEX#2B45A3
RGBrgb(43, 69, 163)
HSLhsl(227, 58%, 40%)
HSVhsv(227, 74%, 64%)
CMYKcmyk(73.6%, 57.7%, 0%, 36.1%)
CIE-LABlab(32.73, 23.88, -53.72)
CIE-LCHlch(32.73, 58.78, 293.97°)
OKLaboklab(42.9% -0.0065 -0.1549)
OKLCHoklch(42.9% 0.155 267.6)
XYZxyz(9.7329, 7.4132, 35.5612)
Luminance0.0741 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B45A3 #A3892B
analogous
#2B81A3 #2B45A3 #4D2BA3
triadic
#2B45A3 #A32B45 #45A32B
tetradic
#2B45A3 #A32B81 #A3892B #2BA34D
square
#2B45A3 #A32B81 #A3892B #2BA34D
split-complementary
#2B45A3 #A34D2B #81A32B
monochromatic
#111C42 #1E3173 #2B45A3 #3F5ECC #6F86D9

Accessibility & contrast

On white

8.46
#2B45A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#2B45A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B45A3
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B45A3#FFFFFF#000000##FFFFFF
##2B45A31.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A6
Deuteranopia (green-blind)
#0048A1
Tritanopia (blue-blind)
#005C6D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2b45a3;
/* rgb */ color: rgb(43, 69, 163);
/* oklch */ color: oklch(42.9% 0.155 267.6);
Tailwind
colors: {
  custom: {
    50: '#7578bf',
    500: '#2b45a3',
    950: '#000000',
  },
}
SCSS
$custom: #2b45a3;
$custom-light: #7578bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2b45a3",
  "rgb": {
    "r": 43,
    "g": 69,
    "b": 163
  },
  "hsl": {
    "h": 227,
    "s": 58.252,
    "l": 40.392
  },
  "oklch": {
    "l": 0.42904,
    "c": 0.15502,
    "h": 267.6
  },
  "luminance": 0.07414
}

Semantic roles & 50–950 ramp

primary
#2B45A3
secondary
#C0AD6A
accent
#C046E1
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2B45A3

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

Preview Lab → · Contrast checker → · Palette generator →

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