#1F138A#1F138A

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

Color values

HEX#1F138A
RGBrgb(31, 19, 138)
HSLhsl(246, 76%, 31%)
HSVhsv(246, 86%, 54%)
CMYKcmyk(77.5%, 86.2%, 0%, 45.9%)
CIE-LABlab(18.33, 44.06, -62.06)
CIE-LCHlch(18.33, 76.11, 305.38°)
OKLaboklab(31.56% 0.0107 -0.1794)
OKLCHoklch(31.56% 0.18 273.4)
XYZxyz(5.3839, 2.5915, 24.2563)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F138A #7E8A13
analogous
#13438A #1F138A #5A138A
triadic
#1F138A #8A1F13 #138A1F
tetradic
#1F138A #8A1343 #7E8A13 #138A5A
square
#1F138A #8A1343 #7E8A13 #138A5A
split-complementary
#1F138A #8A5A13 #438A13
monochromatic
#07041E #130C54 #1F138A #2B1AC0 #4634E3

Accessibility & contrast

On white

13.83
#1F138A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#1F138A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F138A
13.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F138A#FFFFFF#000000##FFFFFF
##1F138A1.0013.831.5213.83
#FFFFFF13.831.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f138a;
/* rgb */ color: rgb(31, 19, 138);
/* oklch */ color: oklch(31.6% 0.180 273.4);
Tailwind
colors: {
  custom: {
    50: '#6f56ae',
    500: '#1f138a',
    950: '#000000',
  },
}
SCSS
$custom: #1f138a;
$custom-light: #6f56ae;
$custom-dark: #000000;
JSON
{
  "hex": "#1f138a",
  "rgb": {
    "r": 31,
    "g": 19,
    "b": 138
  },
  "hsl": {
    "h": 246.05,
    "s": 75.796,
    "l": 30.784
  },
  "oklch": {
    "l": 0.31562,
    "c": 0.17977,
    "h": 273.4
  },
  "luminance": 0.02592
}

Semantic roles & 50–950 ramp

primary
#1F138A
secondary
#B1BE3A
accent
#F235DF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #1F138A

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

Preview Lab → · Contrast checker → · Palette generator →

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