#1F127B#1F127B

#1F127B is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.6% C 0.163 H 275.5°. Best body text is #FFFFFF at 14.68:1 contrast (WCAG AA passes).

Color values

HEX#1F127B
RGBrgb(31, 18, 123)
HSLhsl(247, 74%, 28%)
HSVhsv(247, 85%, 48%)
CMYKcmyk(74.8%, 85.4%, 0%, 51.8%)
CIE-LABlab(16.27, 39.81, -55.96)
CIE-LCHlch(16.27, 68.68, 305.43°)
OKLaboklab(29.6% 0.0155 -0.1618)
OKLCHoklch(29.6% 0.163 275.5)
XYZxyz(4.3554, 2.1536, 18.9212)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F127B #6E7B12
analogous
#12397B #1F127B #54127B
triadic
#1F127B #7B1F12 #127B1F
tetradic
#1F127B #7B1239 #6E7B12 #127B54
square
#1F127B #7B1239 #6E7B12 #127B54
split-complementary
#1F127B #7B5412 #397B12
monochromatic
#07041B #120A46 #1F127B #2C1AB0 #3F28E0

Accessibility & contrast

On white

14.68
#1F127B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F127B
14.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F127B#FFFFFF#000000##FFFFFF
##1F127B1.0014.681.4314.68
#FFFFFF14.681.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7E
Deuteranopia (green-blind)
#002479
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1f127b;
/* rgb */ color: rgb(31, 18, 123);
/* oklch */ color: oklch(29.6% 0.163 275.5);
Tailwind
colors: {
  custom: {
    50: '#6c54a2',
    500: '#1f127b',
    950: '#000000',
  },
}
SCSS
$custom: #1f127b;
$custom-light: #6c54a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f127b",
  "rgb": {
    "r": 31,
    "g": 18,
    "b": 123
  },
  "hsl": {
    "h": 247.429,
    "s": 74.468,
    "l": 27.647
  },
  "oklch": {
    "l": 0.29601,
    "c": 0.16252,
    "h": 275.5
  },
  "luminance": 0.02154
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F127B

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

Preview Lab → · Contrast checker → · Palette generator →

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