#2145A7#2145A7

#2145A7 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 42.8% C 0.163 H 264.8°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#2145A7
RGBrgb(33, 69, 167)
HSLhsl(224, 67%, 39%)
HSVhsv(224, 80%, 65%)
CMYKcmyk(80.2%, 58.7%, 0%, 34.5%)
CIE-LABlab(32.63, 24.26, -56.30)
CIE-LCHlch(32.63, 61.30, 293.32°)
OKLaboklab(42.82% -0.0147 -0.1626)
OKLCHoklch(42.82% 0.163 264.8)
XYZxyz(9.7279, 7.3685, 37.4613)
Luminance0.0737 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2145A7 #A78321
analogous
#2188A7 #2145A7 #4021A7
triadic
#2145A7 #A72145 #45A721
tetradic
#2145A7 #A72188 #A78321 #21A740
square
#2145A7 #A72188 #A78321 #21A740
split-complementary
#2145A7 #A74021 #88A721
monochromatic
#0D1B41 #173074 #2145A7 #2F5CD6 #6284E0

Accessibility & contrast

On white

8.49
#2145A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#2145A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2145A7
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2145A7#FFFFFF#000000##FFFFFF
##2145A71.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AA
Deuteranopia (green-blind)
#0047A5
Tritanopia (blue-blind)
#005E6F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2145a7;
/* rgb */ color: rgb(33, 69, 167);
/* oklch */ color: oklch(42.8% 0.163 264.8);
Tailwind
colors: {
  custom: {
    50: '#7378c2',
    500: '#2145a7',
    950: '#000000',
  },
}
SCSS
$custom: #2145a7;
$custom-light: #7378c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2145a7",
  "rgb": {
    "r": 33,
    "g": 69,
    "b": 167
  },
  "hsl": {
    "h": 223.881,
    "s": 67,
    "l": 39.216
  },
  "oklch": {
    "l": 0.42815,
    "c": 0.1633,
    "h": 264.8
  },
  "luminance": 0.0737
}

Semantic roles & 50–950 ramp

primary
#2145A7
secondary
#C5AA5F
accent
#BC3EEA
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#090812
muted
#7B7B81

Preview Lab

Preview with #2145A7

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

Preview Lab → · Contrast checker → · Palette generator →

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