#1F127C#1F127C

#1F127C is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.7% C 0.164 H 275.3°. Best body text is #FFFFFF at 14.63:1 contrast (WCAG AA passes).

Color values

HEX#1F127C
RGBrgb(31, 18, 124)
HSLhsl(247, 75%, 28%)
HSVhsv(247, 85%, 49%)
CMYKcmyk(75%, 85.5%, 0%, 51.4%)
CIE-LABlab(16.40, 40.13, -56.40)
CIE-LCHlch(16.40, 69.22, 305.44°)
OKLaboklab(29.72% 0.0151 -0.163)
OKLCHoklch(29.72% 0.164 275.3)
XYZxyz(4.4183, 2.1787, 19.2526)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F127C #6F7C12
analogous
#123A7C #1F127C #54127C
triadic
#1F127C #7C1F12 #127C1F
tetradic
#1F127C #7C123A #6F7C12 #127C54
square
#1F127C #7C123A #6F7C12 #127C54
split-complementary
#1F127C #7C5412 #3A7C12
monochromatic
#07041B #120A47 #1F127C #2C1AB1 #3F29E0

Accessibility & contrast

On white

14.63
#1F127C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#1F127C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F127C
14.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F127C#FFFFFF#000000##FFFFFF
##1F127C1.0014.631.4414.63
#FFFFFF14.631.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7F
Deuteranopia (green-blind)
#00247A
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1f127c;
/* rgb */ color: rgb(31, 18, 124);
/* oklch */ color: oklch(29.7% 0.164 275.3);
Tailwind
colors: {
  custom: {
    50: '#6c54a3',
    500: '#1f127c',
    950: '#000000',
  },
}
SCSS
$custom: #1f127c;
$custom-light: #6c54a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f127c",
  "rgb": {
    "r": 31,
    "g": 18,
    "b": 124
  },
  "hsl": {
    "h": 247.358,
    "s": 74.648,
    "l": 27.843
  },
  "oklch": {
    "l": 0.29724,
    "c": 0.16373,
    "h": 275.3
  },
  "luminance": 0.02179
}

Semantic roles & 50–950 ramp

primary
#1F127C
secondary
#A3B238
accent
#F137DA
background
#F7F5FA
surface
#EDE8F4
border
#C8C4CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1F127C

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

Preview Lab → · Contrast checker → · Palette generator →

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