#2145C3#2145C3

#2145C3 is a mid, highly saturated blue. Relative luminance 0.085; OKLCH L 45.3% C 0.200 H 265.9°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#2145C3
RGBrgb(33, 69, 195)
HSLhsl(227, 71%, 45%)
HSVhsv(227, 83%, 76%)
CMYKcmyk(83.1%, 64.6%, 0%, 23.5%)
CIE-LABlab(35.04, 34.96, -68.93)
CIE-LCHlch(35.04, 77.29, 296.89°)
OKLaboklab(45.35% -0.0145 -0.1997)
OKLCHoklch(45.35% 0.2 265.9)
XYZxyz(12.6022, 8.5182, 52.5991)
Luminance0.0852 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2145C3 #C39F21
analogous
#2196C3 #2145C3 #4E21C3
triadic
#2145C3 #C32145 #45C321
tetradic
#2145C3 #C32196 #C39F21 #21C34E
square
#2145C3 #C32196 #C39F21 #21C34E
split-complementary
#2145C3 #C34E21 #96C321
monochromatic
#0F205A #18328F #2145C3 #4265DF #7790E8

Accessibility & contrast

On white

7.77
#2145C3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#2145C3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2145C3
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2145C3#FFFFFF#000000##FFFFFF
##2145C31.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC7
Deuteranopia (green-blind)
#004BC1
Tritanopia (blue-blind)
#00677E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2145c3;
/* rgb */ color: rgb(33, 69, 195);
/* oklch */ color: oklch(45.3% 0.200 265.9);
Tailwind
colors: {
  custom: {
    50: '#7a78d6',
    500: '#2145c3',
    950: '#000000',
  },
}
SCSS
$custom: #2145c3;
$custom-light: #7a78d6;
$custom-dark: #000000;
JSON
{
  "hex": "#2145c3",
  "rgb": {
    "r": 33,
    "g": 69,
    "b": 195
  },
  "hsl": {
    "h": 226.667,
    "s": 71.053,
    "l": 44.706
  },
  "oklch": {
    "l": 0.45348,
    "c": 0.20018,
    "h": 265.9
  },
  "luminance": 0.0852
}

Semantic roles & 50–950 ramp

primary
#2145C3
secondary
#CFBA71
accent
#C63AEE
background
#F8F7FD
surface
#EFEDFA
border
#CAC8D3
text
#0B0914
muted
#7C7B83

Preview Lab

Preview with #2145C3

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

Preview Lab → · Contrast checker → · Palette generator →

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