#1F148B#1F148B

#1F148B is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.8% C 0.180 H 273.2°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#1F148B
RGBrgb(31, 20, 139)
HSLhsl(246, 75%, 31%)
HSVhsv(246, 86%, 55%)
CMYKcmyk(77.7%, 85.6%, 0%, 45.5%)
CIE-LABlab(18.61, 43.92, -62.22)
CIE-LCHlch(18.61, 76.16, 305.22°)
OKLaboklab(31.79% 0.0101 -0.1799)
OKLCHoklch(31.79% 0.18 273.2)
XYZxyz(5.4739, 2.6551, 24.6451)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F148B #808B14
analogous
#14448B #1F148B #5A148B
triadic
#1F148B #8B1F14 #148B1F
tetradic
#1F148B #8B1444 #808B14 #148B5A
square
#1F148B #8B1444 #808B14 #148B5A
split-complementary
#1F148B #8B5A14 #448B14
monochromatic
#070520 #130C55 #1F148B #2B1CC1 #4737E2

Accessibility & contrast

On white

13.71
#1F148B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#1F148B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F148B
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F148B#FFFFFF#000000##FFFFFF
##1F148B1.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338E
Deuteranopia (green-blind)
#002889
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1f148b;
/* rgb */ color: rgb(31, 20, 139);
/* oklch */ color: oklch(31.8% 0.180 273.2);
Tailwind
colors: {
  custom: {
    50: '#7056ae',
    500: '#1f148b',
    950: '#000000',
  },
}
SCSS
$custom: #1f148b;
$custom-light: #7056ae;
$custom-dark: #000000;
JSON
{
  "hex": "#1f148b",
  "rgb": {
    "r": 31,
    "g": 20,
    "b": 139
  },
  "hsl": {
    "h": 245.546,
    "s": 74.843,
    "l": 31.176
  },
  "oklch": {
    "l": 0.3179,
    "c": 0.18023,
    "h": 273.2
  },
  "luminance": 0.02656
}

Semantic roles & 50–950 ramp

primary
#1F148B
secondary
#B3BF3C
accent
#F136E0
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090310
muted
#7B787F

Preview Lab

Preview with #1F148B

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

Preview Lab → · Contrast checker → · Palette generator →

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