#2B45A2#2B45A2

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

Color values

HEX#2B45A2
RGBrgb(43, 69, 162)
HSLhsl(227, 58%, 40%)
HSVhsv(227, 73%, 64%)
CMYKcmyk(73.5%, 57.4%, 0%, 36.5%)
CIE-LABlab(32.65, 23.50, -53.24)
CIE-LCHlch(32.65, 58.20, 293.82°)
OKLaboklab(42.82% -0.0065 -0.1535)
OKLCHoklch(42.82% 0.154 267.6)
XYZxyz(9.6437, 7.3775, 35.0912)
Luminance0.0738 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B45A2 #A2882B
analogous
#2B80A2 #2B45A2 #4D2BA2
triadic
#2B45A2 #A22B45 #45A22B
tetradic
#2B45A2 #A22B80 #A2882B #2BA24D
square
#2B45A2 #A22B80 #A2882B #2BA24D
split-complementary
#2B45A2 #A24D2B #80A22B
monochromatic
#111C41 #1E3072 #2B45A2 #3E5DCC #6F86D9

Accessibility & contrast

On white

8.48
#2B45A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B45A2
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B45A2#FFFFFF#000000##FFFFFF
##2B45A21.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A5
Deuteranopia (green-blind)
#0048A0
Tritanopia (blue-blind)
#005C6C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2b45a2;
/* rgb */ color: rgb(43, 69, 162);
/* oklch */ color: oklch(42.8% 0.154 267.6);
Tailwind
colors: {
  custom: {
    50: '#7578be',
    500: '#2b45a2',
    950: '#000000',
  },
}
SCSS
$custom: #2b45a2;
$custom-light: #7578be;
$custom-dark: #000000;
JSON
{
  "hex": "#2b45a2",
  "rgb": {
    "r": 43,
    "g": 69,
    "b": 162
  },
  "hsl": {
    "h": 226.891,
    "s": 58.049,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42821,
    "c": 0.15363,
    "h": 267.6
  },
  "luminance": 0.07378
}

Semantic roles & 50–950 ramp

primary
#2B45A2
secondary
#C0AD69
accent
#BF47E1
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2B45A2

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

Preview Lab → · Contrast checker → · Palette generator →

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