#1C1F7D#1C1F7D

#1C1F7D is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.4% C 0.154 H 272.0°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#1C1F7D
RGBrgb(28, 31, 125)
HSLhsl(238, 63%, 30%)
HSVhsv(238, 78%, 49%)
CMYKcmyk(77.6%, 75.2%, 0%, 51%)
CIE-LABlab(18.83, 32.99, -53.02)
CIE-LCHlch(18.83, 62.44, 301.89°)
OKLaboklab(31.41% 0.0053 -0.1534)
OKLCHoklch(31.41% 0.154 272)
XYZxyz(4.6693, 2.7070, 19.6745)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C1F7D #7D7A1C
analogous
#1C507D #1C1F7D #491C7D
triadic
#1C1F7D #7D1C1F #1F7D1C
tetradic
#1C1F7D #7D1C50 #7D7A1C #1C7D49
square
#1C1F7D #7D1C50 #7D7A1C #1C7D49
split-complementary
#1C1F7D #7D491C #507D1C
monochromatic
#060619 #11134B #1C1F7D #272BAF #3F44D4

Accessibility & contrast

On white

13.62
#1C1F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#1C1F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C1F7D
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C1F7D#FFFFFF#000000##FFFFFF
##1C1F7D1.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003280
Deuteranopia (green-blind)
#00297B
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1c1f7d;
/* rgb */ color: rgb(28, 31, 125);
/* oklch */ color: oklch(31.4% 0.154 272.0);
Tailwind
colors: {
  custom: {
    50: '#6a5ba4',
    500: '#1c1f7d',
    950: '#000000',
  },
}
SCSS
$custom: #1c1f7d;
$custom-light: #6a5ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#1c1f7d",
  "rgb": {
    "r": 28,
    "g": 31,
    "b": 125
  },
  "hsl": {
    "h": 238.144,
    "s": 63.399,
    "l": 30
  },
  "oklch": {
    "l": 0.31412,
    "c": 0.15354,
    "h": 272
  },
  "luminance": 0.02708
}

Semantic roles & 50–950 ramp

primary
#1C1F7D
secondary
#B1AD44
accent
#E141E6
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1C1F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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