#1A117C#1A117C

#1A117C is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.3% C 0.166 H 272.9°. Best body text is #FFFFFF at 14.84:1 contrast (WCAG AA passes).

Color values

HEX#1A117C
RGBrgb(26, 17, 124)
HSLhsl(245, 76%, 28%)
HSVhsv(245, 86%, 49%)
CMYKcmyk(79%, 86.3%, 0%, 51.4%)
CIE-LABlab(15.88, 40.25, -57.27)
CIE-LCHlch(15.88, 70.00, 305.10°)
OKLaboklab(29.27% 0.0084 -0.1656)
OKLCHoklch(29.27% 0.166 272.9)
XYZxyz(4.2633, 2.0753, 19.2408)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A117C #737C11
analogous
#113D7C #1A117C #50117C
triadic
#1A117C #7C1A11 #117C1A
tetradic
#1A117C #7C113D #737C11 #117C50
square
#1A117C #7C113D #737C11 #117C50
split-complementary
#1A117C #7C5011 #3D7C11
monochromatic
#06041B #0F0A46 #1A117C #2518B2 #3626E1

Accessibility & contrast

On white

14.84
#1A117C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#1A117C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A117C
14.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A117C#FFFFFF#000000##FFFFFF
##1A117C1.0014.841.4214.84
#FFFFFF14.841.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C7F
Deuteranopia (green-blind)
#00227A
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1a117c;
/* rgb */ color: rgb(26, 17, 124);
/* oklch */ color: oklch(29.3% 0.166 272.9);
Tailwind
colors: {
  custom: {
    50: '#6a53a3',
    500: '#1a117c',
    950: '#000000',
  },
}
SCSS
$custom: #1a117c;
$custom-light: #6a53a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1a117c",
  "rgb": {
    "r": 26,
    "g": 17,
    "b": 124
  },
  "hsl": {
    "h": 245.047,
    "s": 75.887,
    "l": 27.647
  },
  "oklch": {
    "l": 0.2927,
    "c": 0.16586,
    "h": 272.9
  },
  "luminance": 0.02076
}

Semantic roles & 50–950 ramp

primary
#1A117C
secondary
#A8B237
accent
#F235E3
background
#F6F4FA
surface
#ECE7F4
border
#C7C3CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #1A117C

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

Preview Lab → · Contrast checker → · Palette generator →

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