#1C118E#1C118E

#1C118E is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.7% C 0.187 H 271.8°. Best body text is #FFFFFF at 13.81:1 contrast (WCAG AA passes).

Color values

HEX#1C118E
RGBrgb(28, 17, 142)
HSLhsl(245, 79%, 31%)
HSVhsv(245, 88%, 56%)
CMYKcmyk(80.3%, 88%, 0%, 44.3%)
CIE-LABlab(18.37, 45.97, -64.50)
CIE-LCHlch(18.37, 79.21, 305.48°)
OKLaboklab(31.68% 0.006 -0.1865)
OKLCHoklch(31.68% 0.187 271.8)
XYZxyz(5.5602, 2.6001, 25.7948)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C118E #838E11
analogous
#11448E #1C118E #5A118E
triadic
#1C118E #8E1C11 #118E1C
tetradic
#1C118E #8E1144 #838E11 #118E5A
square
#1C118E #8E1144 #838E11 #118E5A
split-complementary
#1C118E #8E5A11 #448E11
monochromatic
#060421 #110A57 #1C118E #2718C5 #4333E7

Accessibility & contrast

On white

13.81
#1C118E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#1C118E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C118E
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C118E#FFFFFF#000000##FFFFFF
##1C118E1.0013.811.5213.81
#FFFFFF13.811.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003391
Deuteranopia (green-blind)
#00278C
Tritanopia (blue-blind)
#003B53
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1c118e;
/* rgb */ color: rgb(28, 17, 142);
/* oklch */ color: oklch(31.7% 0.187 271.8);
Tailwind
colors: {
  custom: {
    50: '#7055b0',
    500: '#1c118e',
    950: '#000000',
  },
}
SCSS
$custom: #1c118e;
$custom-light: #7055b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1c118e",
  "rgb": {
    "r": 28,
    "g": 17,
    "b": 142
  },
  "hsl": {
    "h": 245.28,
    "s": 78.616,
    "l": 31.176
  },
  "oklch": {
    "l": 0.31684,
    "c": 0.18664,
    "h": 271.8
  },
  "luminance": 0.02601
}

Semantic roles & 50–950 ramp

primary
#1C118E
secondary
#B6C238
accent
#F533E4
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #1C118E

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

Preview Lab → · Contrast checker → · Palette generator →

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