#1F127D#1F127D

#1F127D is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.8% C 0.165 H 275.2°. Best body text is #FFFFFF at 14.57:1 contrast (WCAG AA passes).

Color values

HEX#1F127D
RGBrgb(31, 18, 125)
HSLhsl(247, 75%, 28%)
HSVhsv(247, 86%, 49%)
CMYKcmyk(75.2%, 85.6%, 0%, 51%)
CIE-LABlab(16.52, 40.45, -56.83)
CIE-LCHlch(16.52, 69.75, 305.44°)
OKLaboklab(29.85% 0.0148 -0.1643)
OKLCHoklch(29.85% 0.165 275.2)
XYZxyz(4.4818, 2.2041, 19.5873)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F127D #707D12
analogous
#123A7D #1F127D #54127D
triadic
#1F127D #7D1F12 #127D1F
tetradic
#1F127D #7D123A #707D12 #127D54
square
#1F127D #7D123A #707D12 #127D54
split-complementary
#1F127D #7D5412 #3A7D12
monochromatic
#07041B #120A48 #1F127D #2C1AB2 #3F29E0

Accessibility & contrast

On white

14.57
#1F127D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F127D
14.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F127D#FFFFFF#000000##FFFFFF
##1F127D1.0014.571.4414.57
#FFFFFF14.571.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D80
Deuteranopia (green-blind)
#00247B
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1f127d;
/* rgb */ color: rgb(31, 18, 125);
/* oklch */ color: oklch(29.8% 0.165 275.2);
Tailwind
colors: {
  custom: {
    50: '#6c54a4',
    500: '#1f127d',
    950: '#000000',
  },
}
SCSS
$custom: #1f127d;
$custom-light: #6c54a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f127d",
  "rgb": {
    "r": 31,
    "g": 18,
    "b": 125
  },
  "hsl": {
    "h": 247.29,
    "s": 74.825,
    "l": 28.039
  },
  "oklch": {
    "l": 0.29847,
    "c": 0.16495,
    "h": 275.2
  },
  "luminance": 0.02205
}

Semantic roles & 50–950 ramp

primary
#1F127D
secondary
#A4B338
accent
#F136DB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1F127D

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

Preview Lab → · Contrast checker → · Palette generator →

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