#2145A8#2145A8

#2145A8 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 42.9% C 0.165 H 264.9°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#2145A8
RGBrgb(33, 69, 168)
HSLhsl(224, 67%, 39%)
HSVhsv(224, 80%, 66%)
CMYKcmyk(80.4%, 58.9%, 0%, 34.1%)
CIE-LABlab(32.71, 24.65, -56.76)
CIE-LCHlch(32.71, 61.88, 293.48°)
OKLaboklab(42.9% -0.0146 -0.164)
OKLCHoklch(42.9% 0.165 264.9)
XYZxyz(9.8207, 7.4056, 37.9500)
Luminance0.0741 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2145A8 #A88421
analogous
#2189A8 #2145A8 #4121A8
triadic
#2145A8 #A82145 #45A821
tetradic
#2145A8 #A82189 #A88421 #21A841
square
#2145A8 #A82189 #A88421 #21A841
split-complementary
#2145A8 #A84121 #89A821
monochromatic
#0D1B42 #173075 #2145A8 #305CD6 #6384E0

Accessibility & contrast

On white

8.46
#2145A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#2145A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2145A8
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2145A8#FFFFFF#000000##FFFFFF
##2145A81.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2145a8;
/* rgb */ color: rgb(33, 69, 168);
/* oklch */ color: oklch(42.9% 0.165 264.9);
Tailwind
colors: {
  custom: {
    50: '#7378c3',
    500: '#2145a8',
    950: '#000000',
  },
}
SCSS
$custom: #2145a8;
$custom-light: #7378c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2145a8",
  "rgb": {
    "r": 33,
    "g": 69,
    "b": 168
  },
  "hsl": {
    "h": 224,
    "s": 67.164,
    "l": 39.412
  },
  "oklch": {
    "l": 0.42902,
    "c": 0.16466,
    "h": 264.9
  },
  "luminance": 0.07407
}

Semantic roles & 50–950 ramp

primary
#2145A8
secondary
#C5AA5F
accent
#BC3EEA
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#090813
muted
#7B7B82

Preview Lab

Preview with #2145A8

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

Preview Lab → · Contrast checker → · Palette generator →

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