#1C227F#1C227F

#1C227F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.1% C 0.153 H 271.3°. Best body text is #FFFFFF at 13.25:1 contrast (WCAG AA passes).

Color values

HEX#1C227F
RGBrgb(28, 34, 127)
HSLhsl(236, 64%, 30%)
HSVhsv(236, 78%, 50%)
CMYKcmyk(78%, 73.2%, 0%, 50.2%)
CIE-LABlab(19.73, 31.83, -52.80)
CIE-LCHlch(19.73, 61.65, 301.08°)
OKLaboklab(32.12% 0.0034 -0.1528)
OKLCHoklch(32.12% 0.153 271.3)
XYZxyz(4.8804, 2.9227, 20.3815)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C227F #7F791C
analogous
#1C537F #1C227F #481C7F
triadic
#1C227F #7F1C22 #227F1C
tetradic
#1C227F #7F1C53 #7F791C #1C7F48
square
#1C227F #7F1C53 #7F791C #1C7F48
split-complementary
#1C227F #7F481C #537F1C
monochromatic
#06071B #11154D #1C227F #272FB1 #4049D5

Accessibility & contrast

On white

13.25
#1C227F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#1C227F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C227F
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C227F#FFFFFF#000000##FFFFFF
##1C227F1.0013.251.5813.25
#FFFFFF13.251.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#002B7D
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1c227f;
/* rgb */ color: rgb(28, 34, 127);
/* oklch */ color: oklch(32.1% 0.153 271.3);
Tailwind
colors: {
  custom: {
    50: '#6a5ea5',
    500: '#1c227f',
    950: '#000000',
  },
}
SCSS
$custom: #1c227f;
$custom-light: #6a5ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#1c227f",
  "rgb": {
    "r": 28,
    "g": 34,
    "b": 127
  },
  "hsl": {
    "h": 236.364,
    "s": 63.871,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32123,
    "c": 0.15287,
    "h": 271.3
  },
  "luminance": 0.02923
}

Semantic roles & 50–950 ramp

primary
#1C227F
secondary
#B3AC44
accent
#DD41E7
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #1C227F

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

Preview Lab → · Contrast checker → · Palette generator →

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