#2B45B4#2B45B4

#2B45B4 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.4% C 0.178 H 268.0°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#2B45B4
RGBrgb(43, 69, 180)
HSLhsl(229, 61%, 44%)
HSVhsv(229, 76%, 71%)
CMYKcmyk(76.1%, 61.7%, 0%, 29.4%)
CIE-LABlab(34.12, 30.27, -61.60)
CIE-LCHlch(34.12, 68.64, 296.17°)
OKLaboklab(44.37% -0.0062 -0.178)
OKLCHoklch(44.37% 0.178 268)
XYZxyz(11.3597, 8.0639, 44.1290)
Luminance0.0806 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B45B4 #B49A2B
analogous
#2B89B4 #2B45B4 #552BB4
triadic
#2B45B4 #B42B45 #45B42B
tetradic
#2B45B4 #B42B89 #B49A2B #2BB455
square
#2B45B4 #B42B89 #B49A2B #2BB455
split-complementary
#2B45B4 #B4552B #89B42B
monochromatic
#131F51 #1F3283 #2B45B4 #4963D3 #7A8DDF

Accessibility & contrast

On white

8.04
#2B45B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#2B45B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B45B4
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B45B4#FFFFFF#000000##FFFFFF
##2B45B41.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B8
Deuteranopia (green-blind)
#004AB2
Tritanopia (blue-blind)
#006276
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2b45b4;
/* rgb */ color: rgb(43, 69, 180);
/* oklch */ color: oklch(44.4% 0.178 268.0);
Tailwind
colors: {
  custom: {
    50: '#7978cb',
    500: '#2b45b4',
    950: '#000000',
  },
}
SCSS
$custom: #2b45b4;
$custom-light: #7978cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2b45b4",
  "rgb": {
    "r": 43,
    "g": 69,
    "b": 180
  },
  "hsl": {
    "h": 228.613,
    "s": 61.435,
    "l": 43.725
  },
  "oklch": {
    "l": 0.4437,
    "c": 0.17814,
    "h": 268
  },
  "luminance": 0.08065
}

Semantic roles & 50–950 ramp

primary
#2B45B4
secondary
#C7B773
accent
#C643E5
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #2B45B4

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

Preview Lab → · Contrast checker → · Palette generator →

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