#1F127A#1F127A

#1F127A is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.5% C 0.161 H 275.6°. Best body text is #FFFFFF at 14.73:1 contrast (WCAG AA passes).

Color values

HEX#1F127A
RGBrgb(31, 18, 122)
HSLhsl(248, 74%, 27%)
HSVhsv(248, 85%, 48%)
CMYKcmyk(74.6%, 85.2%, 0%, 52.2%)
CIE-LABlab(16.15, 39.50, -55.53)
CIE-LCHlch(16.15, 68.14, 305.42°)
OKLaboklab(29.48% 0.0158 -0.1605)
OKLCHoklch(29.48% 0.161 275.6)
XYZxyz(4.2931, 2.1286, 18.5932)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F127A #6D7A12
analogous
#12397A #1F127A #53127A
triadic
#1F127A #7A1F12 #127A1F
tetradic
#1F127A #7A1239 #6D7A12 #127A53
square
#1F127A #7A1239 #6D7A12 #127A53
split-complementary
#1F127A #7A5312 #397A12
monochromatic
#07041B #110A45 #1F127A #2D1AAF #3E27DF

Accessibility & contrast

On white

14.73
#1F127A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#1F127A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F127A
14.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F127A#FFFFFF#000000##FFFFFF
##1F127A1.0014.731.4314.73
#FFFFFF14.731.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C7D
Deuteranopia (green-blind)
#002378
Tritanopia (blue-blind)
#003347
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1f127a;
/* rgb */ color: rgb(31, 18, 122);
/* oklch */ color: oklch(29.5% 0.161 275.6);
Tailwind
colors: {
  custom: {
    50: '#6b54a2',
    500: '#1f127a',
    950: '#000000',
  },
}
SCSS
$custom: #1f127a;
$custom-light: #6b54a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f127a",
  "rgb": {
    "r": 31,
    "g": 18,
    "b": 122
  },
  "hsl": {
    "h": 247.5,
    "s": 74.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.29479,
    "c": 0.16129,
    "h": 275.6
  },
  "luminance": 0.02129
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F127A

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

Preview Lab → · Contrast checker → · Palette generator →

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