#1F138E#1F138E

#1F138E is a dark, vivid blue. Relative luminance 0.027; OKLCH L 32.1% C 0.184 H 273.0°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#1F138E
RGBrgb(31, 19, 142)
HSLhsl(246, 76%, 32%)
HSVhsv(246, 87%, 56%)
CMYKcmyk(78.2%, 86.6%, 0%, 44.3%)
CIE-LABlab(18.84, 45.29, -63.71)
CIE-LCHlch(18.84, 78.17, 305.41°)
OKLaboklab(32.06% 0.0095 -0.1842)
OKLCHoklch(32.06% 0.184 273)
XYZxyz(5.6788, 2.7094, 25.8096)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F138E #828E13
analogous
#13458E #1F138E #5D138E
triadic
#1F138E #8E1F13 #138E1F
tetradic
#1F138E #8E1345 #828E13 #138E5D
square
#1F138E #8E1345 #828E13 #138E5D
split-complementary
#1F138E #8E5D13 #458E13
monochromatic
#070522 #130C58 #1F138E #2B1AC4 #4837E4

Accessibility & contrast

On white

13.62
#1F138E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#1F138E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F138E
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F138E#FFFFFF#000000##FFFFFF
##1F138E1.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003391
Deuteranopia (green-blind)
#00288C
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1f138e;
/* rgb */ color: rgb(31, 19, 142);
/* oklch */ color: oklch(32.1% 0.184 273.0);
Tailwind
colors: {
  custom: {
    50: '#7056b0',
    500: '#1f138e',
    950: '#000000',
  },
}
SCSS
$custom: #1f138e;
$custom-light: #7056b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f138e",
  "rgb": {
    "r": 31,
    "g": 19,
    "b": 142
  },
  "hsl": {
    "h": 245.854,
    "s": 76.398,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32061,
    "c": 0.18448,
    "h": 273
  },
  "luminance": 0.0271
}

Semantic roles & 50–950 ramp

primary
#1F138E
secondary
#B5C23B
accent
#F335E0
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #1F138E

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

Preview Lab → · Contrast checker → · Palette generator →

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