#1C2172#1C2172

#1C2172 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.6% C 0.136 H 272.4°. Best body text is #FFFFFF at 13.91:1 contrast (WCAG AA passes).

Color values

HEX#1C2172
RGBrgb(28, 33, 114)
HSLhsl(237, 61%, 28%)
HSVhsv(237, 75%, 45%)
CMYKcmyk(75.4%, 71.1%, 0%, 55.3%)
CIE-LABlab(18.14, 27.62, -47.10)
CIE-LCHlch(18.14, 54.60, 300.38°)
OKLaboklab(30.57% 0.0057 -0.1362)
OKLCHoklch(30.57% 0.136 272.4)
XYZxyz(4.0590, 2.5491, 16.1944)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C2172 #726D1C
analogous
#1C4C72 #1C2172 #421C72
triadic
#1C2172 #721C21 #21721C
tetradic
#1C2172 #721C4C #726D1C #1C7242
square
#1C2172 #721C4C #726D1C #1C7242
split-complementary
#1C2172 #72421C #4C721C
monochromatic
#060719 #101341 #1C2172 #282FA3 #3A42CF

Accessibility & contrast

On white

13.91
#1C2172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#1C2172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C2172
13.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C2172#FFFFFF#000000##FFFFFF
##1C21721.0013.911.5113.91
#FFFFFF13.911.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003074
Deuteranopia (green-blind)
#002870
Tritanopia (blue-blind)
#003746
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1c2172;
/* rgb */ color: rgb(28, 33, 114);
/* oklch */ color: oklch(30.6% 0.136 272.4);
Tailwind
colors: {
  custom: {
    50: '#675c9b',
    500: '#1c2172',
    950: '#000000',
  },
}
SCSS
$custom: #1c2172;
$custom-light: #675c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#1c2172",
  "rgb": {
    "r": 28,
    "g": 33,
    "b": 114
  },
  "hsl": {
    "h": 236.512,
    "s": 60.563,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30565,
    "c": 0.13632,
    "h": 272.4
  },
  "luminance": 0.02549
}

Semantic roles & 50–950 ramp

primary
#1C2172
secondary
#A6A143
accent
#DA44E4
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #1C2172

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

Preview Lab → · Contrast checker → · Palette generator →

#1C2172 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva