#1F158C#1F158C

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

Color values

HEX#1F158C
RGBrgb(31, 21, 140)
HSLhsl(245, 74%, 32%)
HSVhsv(245, 85%, 55%)
CMYKcmyk(77.9%, 85%, 0%, 45.1%)
CIE-LABlab(18.89, 43.78, -62.38)
CIE-LCHlch(18.89, 76.21, 305.06°)
OKLaboklab(32.02% 0.0095 -0.1804)
OKLCHoklch(32.02% 0.181 273)
XYZxyz(5.5653, 2.7205, 25.0377)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F158C #828C15
analogous
#15478C #1F158C #5B158C
triadic
#1F158C #8C1F15 #158C1F
tetradic
#1F158C #8C1547 #828C15 #158C5B
square
#1F158C #8C1547 #828C15 #158C5B
split-complementary
#1F158C #8C5B15 #478C15
monochromatic
#070522 #130D57 #1F158C #2B1DC1 #483AE1

Accessibility & contrast

On white

13.60
#1F158C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F158C
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F158C#FFFFFF#000000##FFFFFF
##1F158C1.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338F
Deuteranopia (green-blind)
#00288A
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1f158c;
/* rgb */ color: rgb(31, 21, 140);
/* oklch */ color: oklch(32.0% 0.181 273.0);
Tailwind
colors: {
  custom: {
    50: '#7057af',
    500: '#1f158c',
    950: '#000000',
  },
}
SCSS
$custom: #1f158c;
$custom-light: #7057af;
$custom-dark: #000000;
JSON
{
  "hex": "#1f158c",
  "rgb": {
    "r": 31,
    "g": 21,
    "b": 140
  },
  "hsl": {
    "h": 245.042,
    "s": 73.913,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32021,
    "c": 0.18068,
    "h": 273
  },
  "luminance": 0.02721
}

Semantic roles & 50–950 ramp

primary
#1F158C
secondary
#B5C03D
accent
#F137E1
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880

Preview Lab

Preview with #1F158C

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

Preview Lab → · Contrast checker → · Palette generator →

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