#2145A2#2145A2

#2145A2 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.4% C 0.156 H 264.5°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#2145A2
RGBrgb(33, 69, 162)
HSLhsl(223, 66%, 38%)
HSVhsv(223, 80%, 64%)
CMYKcmyk(79.6%, 57.4%, 0%, 36.5%)
CIE-LABlab(32.23, 22.31, -53.95)
CIE-LCHlch(32.23, 58.38, 292.47°)
OKLaboklab(42.39% -0.0149 -0.1557)
OKLCHoklch(42.39% 0.156 264.5)
XYZxyz(9.2746, 7.1871, 35.0739)
Luminance0.0719 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2145A2 #A27E21
analogous
#2185A2 #2145A2 #3D21A2
triadic
#2145A2 #A22145 #45A221
tetradic
#2145A2 #A22185 #A27E21 #21A23D
square
#2145A2 #A22185 #A27E21 #21A23D
split-complementary
#2145A2 #A23D21 #85A221
monochromatic
#0C1A3C #172F6F #2145A2 #2C5BD4 #5F83DE

Accessibility & contrast

On white

8.62
#2145A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#2145A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2145A2
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2145A2#FFFFFF#000000##FFFFFF
##2145A21.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A5
Deuteranopia (green-blind)
#0046A0
Tritanopia (blue-blind)
#005C6C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2145a2;
/* rgb */ color: rgb(33, 69, 162);
/* oklch */ color: oklch(42.4% 0.156 264.5);
Tailwind
colors: {
  custom: {
    50: '#7278be',
    500: '#2145a2',
    950: '#000000',
  },
}
SCSS
$custom: #2145a2;
$custom-light: #7278be;
$custom-dark: #000000;
JSON
{
  "hex": "#2145a2",
  "rgb": {
    "r": 33,
    "g": 69,
    "b": 162
  },
  "hsl": {
    "h": 223.256,
    "s": 66.154,
    "l": 38.235
  },
  "oklch": {
    "l": 0.42387,
    "c": 0.15645,
    "h": 264.5
  },
  "luminance": 0.07188
}

Semantic roles & 50–950 ramp

primary
#2145A2
secondary
#C3A65C
accent
#BA3FE9
background
#F7F7FB
surface
#EDEDF7
border
#C8C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #2145A2

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

Preview Lab → · Contrast checker → · Palette generator →

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