#1F138D#1F138D

#1F138D is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.9% C 0.183 H 273.1°. Best body text is #FFFFFF at 13.67:1 contrast (WCAG AA passes).

Color values

HEX#1F138D
RGBrgb(31, 19, 141)
HSLhsl(246, 76%, 31%)
HSVhsv(246, 87%, 55%)
CMYKcmyk(78%, 86.5%, 0%, 44.7%)
CIE-LABlab(18.71, 44.99, -63.30)
CIE-LCHlch(18.71, 77.66, 305.40°)
OKLaboklab(31.94% 0.0098 -0.183)
OKLCHoklch(31.94% 0.183 273.1)
XYZxyz(5.6041, 2.6795, 25.4160)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F138D #818D13
analogous
#13448D #1F138D #5C138D
triadic
#1F138D #8D1F13 #138D1F
tetradic
#1F138D #8D1344 #818D13 #138D5C
square
#1F138D #8D1344 #818D13 #138D5C
split-complementary
#1F138D #8D5C13 #448D13
monochromatic
#070421 #130C57 #1F138D #2B1AC3 #4836E4

Accessibility & contrast

On white

13.67
#1F138D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F138D
13.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F138D#FFFFFF#000000##FFFFFF
##1F138D1.0013.671.5413.67
#FFFFFF13.671.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003390
Deuteranopia (green-blind)
#00288B
Tritanopia (blue-blind)
#003B53
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1f138d;
/* rgb */ color: rgb(31, 19, 141);
/* oklch */ color: oklch(31.9% 0.183 273.1);
Tailwind
colors: {
  custom: {
    50: '#7056b0',
    500: '#1f138d',
    950: '#000000',
  },
}
SCSS
$custom: #1f138d;
$custom-light: #7056b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f138d",
  "rgb": {
    "r": 31,
    "g": 19,
    "b": 141
  },
  "hsl": {
    "h": 245.902,
    "s": 76.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.31936,
    "c": 0.1833,
    "h": 273.1
  },
  "luminance": 0.0268
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F138D

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

Preview Lab → · Contrast checker → · Palette generator →

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