#1C187F#1C187F

#1C187F is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.6% C 0.163 H 272.8°. Best body text is #FFFFFF at 14.13:1 contrast (WCAG AA passes).

Color values

HEX#1C187F
RGBrgb(28, 24, 127)
HSLhsl(242, 68%, 30%)
HSVhsv(242, 81%, 50%)
CMYKcmyk(78%, 81.1%, 0%, 50.2%)
CIE-LABlab(17.61, 37.81, -56.31)
CIE-LCHlch(17.61, 67.83, 303.88°)
OKLaboklab(30.62% 0.008 -0.163)
OKLCHoklch(30.62% 0.163 272.8)
XYZxyz(4.6350, 2.4320, 20.2997)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C187F #7B7F18
analogous
#18487F #1C187F #50187F
triadic
#1C187F #7F1C18 #187F1C
tetradic
#1C187F #7F1848 #7B7F18 #187F50
square
#1C187F #7F1848 #7B7F18 #187F50
split-complementary
#1C187F #7F5018 #487F18
monochromatic
#06051A #110E4C #1C187F #2722B2 #3E38D9

Accessibility & contrast

On white

14.13
#1C187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#1C187F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C187F
14.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C187F#FFFFFF#000000##FFFFFF
##1C187F1.0014.131.4914.13
#FFFFFF14.131.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003082
Deuteranopia (green-blind)
#00267D
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #1c187f;
/* rgb */ color: rgb(28, 24, 127);
/* oklch */ color: oklch(30.6% 0.163 272.8);
Tailwind
colors: {
  custom: {
    50: '#6b57a5',
    500: '#1c187f',
    950: '#000000',
  },
}
SCSS
$custom: #1c187f;
$custom-light: #6b57a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1c187f",
  "rgb": {
    "r": 28,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 242.33,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.30616,
    "c": 0.16314,
    "h": 272.8
  },
  "luminance": 0.02432
}

Semantic roles & 50–950 ramp

primary
#1C187F
secondary
#AFB33F
accent
#EB3DE4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1C187F

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

Preview Lab → · Contrast checker → · Palette generator →

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