#1F147B#1F147B

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

Color values

HEX#1F147B
RGBrgb(31, 20, 123)
HSLhsl(246, 72%, 28%)
HSVhsv(246, 84%, 48%)
CMYKcmyk(74.8%, 83.7%, 0%, 51.8%)
CIE-LABlab(16.61, 38.83, -55.41)
CIE-LCHlch(16.61, 67.66, 305.03°)
OKLaboklab(29.83% 0.0147 -0.1602)
OKLCHoklch(29.83% 0.161 275.2)
XYZxyz(4.3892, 2.2212, 18.9325)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F147B #707B14
analogous
#143C7B #1F147B #52147B
triadic
#1F147B #7B1F14 #147B1F
tetradic
#1F147B #7B143C #707B14 #147B52
square
#1F147B #7B143C #707B14 #147B52
split-complementary
#1F147B #7B5214 #3C7B14
monochromatic
#07041A #120B46 #1F147B #2C1DB0 #3F2DDD

Accessibility & contrast

On white

14.54
#1F147B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F147B
14.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F147B#FFFFFF#000000##FFFFFF
##1F147B1.0014.541.4414.54
#FFFFFF14.541.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f147b;
/* rgb */ color: rgb(31, 20, 123);
/* oklch */ color: oklch(29.8% 0.161 275.2);
Tailwind
colors: {
  custom: {
    50: '#6b55a2',
    500: '#1f147b',
    950: '#000000',
  },
}
SCSS
$custom: #1f147b;
$custom-light: #6b55a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f147b",
  "rgb": {
    "r": 31,
    "g": 20,
    "b": 123
  },
  "hsl": {
    "h": 246.408,
    "s": 72.028,
    "l": 28.039
  },
  "oklch": {
    "l": 0.29833,
    "c": 0.16087,
    "h": 275.2
  },
  "luminance": 0.02222
}

Semantic roles & 50–950 ramp

primary
#1F147B
secondary
#A4B13A
accent
#EF39DB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1F147B

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

Preview Lab → · Contrast checker → · Palette generator →

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