#2145B2#2145B2

#2145B2 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.8% C 0.178 H 265.4°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#2145B2
RGBrgb(33, 69, 178)
HSLhsl(225, 69%, 41%)
HSVhsv(225, 81%, 70%)
CMYKcmyk(81.5%, 61.2%, 0%, 30.2%)
CIE-LABlab(33.55, 28.52, -61.36)
CIE-LCHlch(33.55, 67.67, 294.93°)
OKLaboklab(43.78% -0.0143 -0.1775)
OKLCHoklch(43.78% 0.178 265.4)
XYZxyz(10.7884, 7.7926, 43.0464)
Luminance0.0779 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2145B2 #B28E21
analogous
#218EB2 #2145B2 #4521B2
triadic
#2145B2 #B22145 #45B221
tetradic
#2145B2 #B2218E #B28E21 #21B245
square
#2145B2 #B2218E #B28E21 #21B245
split-complementary
#2145B2 #B24521 #8EB221
monochromatic
#0E1D4B #17317E #2145B2 #365FDA #6A88E3

Accessibility & contrast

On white

8.21
#2145B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#2145B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2145B2
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2145B2#FFFFFF#000000##FFFFFF
##2145B21.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B6
Deuteranopia (green-blind)
#0048B0
Tritanopia (blue-blind)
#006175
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2145b2;
/* rgb */ color: rgb(33, 69, 178);
/* oklch */ color: oklch(43.8% 0.178 265.4);
Tailwind
colors: {
  custom: {
    50: '#7678ca',
    500: '#2145b2',
    950: '#000000',
  },
}
SCSS
$custom: #2145b2;
$custom-light: #7678ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2145b2",
  "rgb": {
    "r": 33,
    "g": 69,
    "b": 178
  },
  "hsl": {
    "h": 225.103,
    "s": 68.72,
    "l": 41.373
  },
  "oklch": {
    "l": 0.43784,
    "c": 0.17809,
    "h": 265.4
  },
  "luminance": 0.07794
}

Semantic roles & 50–950 ramp

primary
#2145B2
secondary
#C9B066
accent
#C03CEC
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2145B2

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

Preview Lab → · Contrast checker → · Palette generator →

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