#1C31B4#1C31B4

#1C31B4 is a dark, highly saturated blue. Relative luminance 0.057; OKLCH L 40.3% C 0.204 H 267.4°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#1C31B4
RGBrgb(28, 49, 180)
HSLhsl(232, 73%, 41%)
HSVhsv(232, 84%, 71%)
CMYKcmyk(84.4%, 72.8%, 0%, 29.4%)
CIE-LABlab(28.74, 41.71, -70.46)
CIE-LCHlch(28.74, 81.88, 300.63°)
OKLaboklab(40.27% -0.0092 -0.2042)
OKLCHoklch(40.27% 0.204 267.4)
XYZxyz(9.8126, 5.7376, 43.7615)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C31B4 #B49F1C
analogous
#1C7DB4 #1C31B4 #531CB4
triadic
#1C31B4 #B41C31 #31B41C
tetradic
#1C31B4 #B41C7D #B49F1C #1CB453
square
#1C31B4 #B41C7D #B49F1C #1CB453
split-complementary
#1C31B4 #B4531C #7DB41C
monochromatic
#0C144A #14237F #1C31B4 #2F47DF #6476E7

Accessibility & contrast

On white

9.78
#1C31B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#1C31B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C31B4
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C31B4#FFFFFF#000000##FFFFFF
##1C31B41.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB8
Deuteranopia (green-blind)
#003CB2
Tritanopia (blue-blind)
#00576F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #1c31b4;
/* rgb */ color: rgb(28, 49, 180);
/* oklch */ color: oklch(40.3% 0.204 267.4);
Tailwind
colors: {
  custom: {
    50: '#776acc',
    500: '#1c31b4',
    950: '#000000',
  },
}
SCSS
$custom: #1c31b4;
$custom-light: #776acc;
$custom-dark: #000000;
JSON
{
  "hex": "#1c31b4",
  "rgb": {
    "r": 28,
    "g": 49,
    "b": 180
  },
  "hsl": {
    "h": 231.711,
    "s": 73.077,
    "l": 40.784
  },
  "oklch": {
    "l": 0.40274,
    "c": 0.20446,
    "h": 267.4
  },
  "luminance": 0.05739
}

Semantic roles & 50–950 ramp

primary
#1C31B4
secondary
#CCBD60
accent
#D638F0
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0614
muted
#7C7A82

Preview Lab

Preview with #1C31B4

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

Preview Lab → · Contrast checker → · Palette generator →

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