#1F138C#1F138C

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

Color values

HEX#1F138C
RGBrgb(31, 19, 140)
HSLhsl(246, 76%, 31%)
HSVhsv(246, 86%, 55%)
CMYKcmyk(77.9%, 86.4%, 0%, 45.1%)
CIE-LABlab(18.58, 44.68, -62.88)
CIE-LCHlch(18.58, 77.14, 305.39°)
OKLaboklab(31.81% 0.0101 -0.1819)
OKLCHoklch(31.81% 0.182 273.2)
XYZxyz(5.5300, 2.6499, 25.0259)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F138C #808C13
analogous
#13438C #1F138C #5B138C
triadic
#1F138C #8C1F13 #138C1F
tetradic
#1F138C #8C1343 #808C13 #138C5B
square
#1F138C #8C1343 #808C13 #138C5B
split-complementary
#1F138C #8C5B13 #438C13
monochromatic
#070420 #130C56 #1F138C #2B1AC2 #4736E4

Accessibility & contrast

On white

13.72
#1F138C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F138C
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F138C#FFFFFF#000000##FFFFFF
##1F138C1.0013.721.5313.72
#FFFFFF13.721.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338F
Deuteranopia (green-blind)
#00278A
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1f138c;
/* rgb */ color: rgb(31, 19, 140);
/* oklch */ color: oklch(31.8% 0.182 273.2);
Tailwind
colors: {
  custom: {
    50: '#7056af',
    500: '#1f138c',
    950: '#000000',
  },
}
SCSS
$custom: #1f138c;
$custom-light: #7056af;
$custom-dark: #000000;
JSON
{
  "hex": "#1f138c",
  "rgb": {
    "r": 31,
    "g": 19,
    "b": 140
  },
  "hsl": {
    "h": 245.95,
    "s": 76.101,
    "l": 31.176
  },
  "oklch": {
    "l": 0.31811,
    "c": 0.18213,
    "h": 273.2
  },
  "luminance": 0.02651
}

Semantic roles & 50–950 ramp

primary
#1F138C
secondary
#B3C03B
accent
#F335E0
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880

Preview Lab

Preview with #1F138C

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

Preview Lab → · Contrast checker → · Palette generator →

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