#2145A6#2145A6

#2145A6 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.7% C 0.162 H 264.8°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#2145A6
RGBrgb(33, 69, 166)
HSLhsl(224, 67%, 39%)
HSVhsv(224, 80%, 65%)
CMYKcmyk(80.1%, 58.4%, 0%, 34.9%)
CIE-LABlab(32.55, 23.87, -55.83)
CIE-LCHlch(32.55, 60.72, 293.15°)
OKLaboklab(42.73% -0.0147 -0.1613)
OKLCHoklch(42.73% 0.162 264.8)
XYZxyz(9.6358, 7.3316, 36.9763)
Luminance0.0733 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2145A6 #A68221
analogous
#2188A6 #2145A6 #3F21A6
triadic
#2145A6 #A62145 #45A621
tetradic
#2145A6 #A62188 #A68221 #21A63F
square
#2145A6 #A62188 #A68221 #21A63F
split-complementary
#2145A6 #A63F21 #88A621
monochromatic
#0D1B40 #173073 #2145A6 #2F5CD6 #6284E0

Accessibility & contrast

On white

8.51
#2145A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2145A6
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2145A6#FFFFFF#000000##FFFFFF
##2145A61.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A9
Deuteranopia (green-blind)
#0047A4
Tritanopia (blue-blind)
#005D6E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2145a6;
/* rgb */ color: rgb(33, 69, 166);
/* oklch */ color: oklch(42.7% 0.162 264.8);
Tailwind
colors: {
  custom: {
    50: '#7378c1',
    500: '#2145a6',
    950: '#000000',
  },
}
SCSS
$custom: #2145a6;
$custom-light: #7378c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2145a6",
  "rgb": {
    "r": 33,
    "g": 69,
    "b": 166
  },
  "hsl": {
    "h": 223.759,
    "s": 66.834,
    "l": 39.02
  },
  "oklch": {
    "l": 0.42729,
    "c": 0.16194,
    "h": 264.8
  },
  "luminance": 0.07333
}

Semantic roles & 50–950 ramp

primary
#2145A6
secondary
#C5A95E
accent
#BB3EEA
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#090812
muted
#7B7B81

Preview Lab

Preview with #2145A6

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

Preview Lab → · Contrast checker → · Palette generator →

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