#2145A4#2145A4

#2145A4 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.6% C 0.159 H 264.7°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#2145A4
RGBrgb(33, 69, 164)
HSLhsl(224, 66%, 39%)
HSVhsv(224, 80%, 64%)
CMYKcmyk(79.9%, 57.9%, 0%, 35.7%)
CIE-LABlab(32.39, 23.09, -54.89)
CIE-LCHlch(32.39, 59.55, 292.82°)
OKLaboklab(42.56% -0.0148 -0.1585)
OKLCHoklch(42.56% 0.159 264.7)
XYZxyz(9.4538, 7.2588, 36.0176)
Luminance0.0726 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2145A4 #A48021
analogous
#2186A4 #2145A4 #3E21A4
triadic
#2145A4 #A42145 #45A421
tetradic
#2145A4 #A42186 #A48021 #21A43E
square
#2145A4 #A42186 #A48021 #21A43E
split-complementary
#2145A4 #A43E21 #86A421
monochromatic
#0C1A3E #173071 #2145A4 #2D5BD5 #6083DF

Accessibility & contrast

On white

8.56
#2145A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#2145A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2145A4
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2145A4#FFFFFF#000000##FFFFFF
##2145A41.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A7
Deuteranopia (green-blind)
#0046A2
Tritanopia (blue-blind)
#005D6D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2145a4;
/* rgb */ color: rgb(33, 69, 164);
/* oklch */ color: oklch(42.6% 0.159 264.7);
Tailwind
colors: {
  custom: {
    50: '#7278c0',
    500: '#2145a4',
    950: '#000000',
  },
}
SCSS
$custom: #2145a4;
$custom-light: #7278c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2145a4",
  "rgb": {
    "r": 33,
    "g": 69,
    "b": 164
  },
  "hsl": {
    "h": 223.511,
    "s": 66.497,
    "l": 38.627
  },
  "oklch": {
    "l": 0.42557,
    "c": 0.15921,
    "h": 264.7
  },
  "luminance": 0.0726
}

Semantic roles & 50–950 ramp

primary
#2145A4
secondary
#C4A85D
accent
#BA3EE9
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #2145A4

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

Preview Lab → · Contrast checker → · Palette generator →

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