#1F128A#1F128A

#1F128A is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.5% C 0.180 H 273.5°. Best body text is #FFFFFF at 13.89:1 contrast (WCAG AA passes).

Color values

HEX#1F128A
RGBrgb(31, 18, 138)
HSLhsl(247, 77%, 31%)
HSVhsv(247, 87%, 54%)
CMYKcmyk(77.5%, 87%, 0%, 45.9%)
CIE-LABlab(18.18, 44.50, -62.30)
CIE-LCHlch(18.18, 76.56, 305.54°)
OKLaboklab(31.46% 0.0109 -0.1801)
OKLCHoklch(31.46% 0.18 273.5)
XYZxyz(5.3673, 2.5583, 24.2508)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F128A #7D8A12
analogous
#12418A #1F128A #5B128A
triadic
#1F128A #8A1F12 #128A1F
tetradic
#1F128A #8A1241 #7D8A12 #128A5B
square
#1F128A #8A1241 #7D8A12 #128A5B
split-complementary
#1F128A #8A5B12 #418A12
monochromatic
#07041E #130B54 #1F128A #2B19C0 #4532E4

Accessibility & contrast

On white

13.89
#1F128A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#1F128A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F128A
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F128A#FFFFFF#000000##FFFFFF
##1F128A1.0013.891.5113.89
#FFFFFF13.891.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00328D
Deuteranopia (green-blind)
#002788
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1f128a;
/* rgb */ color: rgb(31, 18, 138);
/* oklch */ color: oklch(31.5% 0.180 273.5);
Tailwind
colors: {
  custom: {
    50: '#6f55ae',
    500: '#1f128a',
    950: '#000000',
  },
}
SCSS
$custom: #1f128a;
$custom-light: #6f55ae;
$custom-dark: #000000;
JSON
{
  "hex": "#1f128a",
  "rgb": {
    "r": 31,
    "g": 18,
    "b": 138
  },
  "hsl": {
    "h": 246.5,
    "s": 76.923,
    "l": 30.588
  },
  "oklch": {
    "l": 0.31461,
    "c": 0.18047,
    "h": 273.5
  },
  "luminance": 0.02559
}

Semantic roles & 50–950 ramp

primary
#1F128A
secondary
#B0BF39
accent
#F334DF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #1F128A

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

Preview Lab → · Contrast checker → · Palette generator →

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