#2145B4#2145B4

#2145B4 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 44.0% C 0.181 H 265.5°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#2145B4
RGBrgb(33, 69, 180)
HSLhsl(225, 69%, 42%)
HSVhsv(225, 82%, 71%)
CMYKcmyk(81.7%, 61.7%, 0%, 29.4%)
CIE-LABlab(33.72, 29.29, -62.27)
CIE-LCHlch(33.72, 68.81, 295.19°)
OKLaboklab(43.96% -0.0143 -0.1802)
OKLCHoklch(43.96% 0.181 265.5)
XYZxyz(10.9906, 7.8735, 44.1117)
Luminance0.0788 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2145B4 #B49021
analogous
#218FB4 #2145B4 #4721B4
triadic
#2145B4 #B42145 #45B421
tetradic
#2145B4 #B4218F #B49021 #21B447
square
#2145B4 #B4218F #B49021 #21B447
split-complementary
#2145B4 #B44721 #8FB421
monochromatic
#0E1D4D #183180 #2145B4 #3860DA #6B89E4

Accessibility & contrast

On white

8.16
#2145B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#2145B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2145B4
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2145B4#FFFFFF#000000##FFFFFF
##2145B41.008.162.588.16
#FFFFFF8.161.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B8
Deuteranopia (green-blind)
#0049B2
Tritanopia (blue-blind)
#006276
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2145b4;
/* rgb */ color: rgb(33, 69, 180);
/* oklch */ color: oklch(44.0% 0.181 265.5);
Tailwind
colors: {
  custom: {
    50: '#7678cb',
    500: '#2145b4',
    950: '#000000',
  },
}
SCSS
$custom: #2145b4;
$custom-light: #7678cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2145b4",
  "rgb": {
    "r": 33,
    "g": 69,
    "b": 180
  },
  "hsl": {
    "h": 225.306,
    "s": 69.014,
    "l": 41.765
  },
  "oklch": {
    "l": 0.43964,
    "c": 0.18073,
    "h": 265.5
  },
  "luminance": 0.07875
}

Semantic roles & 50–950 ramp

primary
#2145B4
secondary
#CAB267
accent
#C13CEC
background
#F7F7FC
surface
#EEEDF9
border
#C9C8D2
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2145B4

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

Preview Lab → · Contrast checker → · Palette generator →

#2145B4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva