#1F1273#1F1273

#1F1273 is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.6% C 0.153 H 276.7°. Best body text is #FFFFFF at 15.08:1 contrast (WCAG AA passes).

Color values

HEX#1F1273
RGBrgb(31, 18, 115)
HSLhsl(248, 73%, 26%)
HSVhsv(248, 84%, 45%)
CMYKcmyk(73%, 84.3%, 0%, 54.9%)
CIE-LABlab(15.28, 37.24, -52.46)
CIE-LCHlch(15.28, 64.33, 305.37°)
OKLaboklab(28.63% 0.0179 -0.1516)
OKLCHoklch(28.63% 0.153 276.7)
XYZxyz(3.8749, 1.9614, 16.3907)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1273 #667312
analogous
#123573 #1F1273 #4F1273
triadic
#1F1273 #731F12 #12731F
tetradic
#1F1273 #731235 #667312 #12734F
square
#1F1273 #731235 #667312 #12734F
split-complementary
#1F1273 #734F12 #357312
monochromatic
#07041A #110A3E #1F1273 #2D1AA8 #3C23DD

Accessibility & contrast

On white

15.08
#1F1273 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#1F1273 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1273
15.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1273#FFFFFF#000000##FFFFFF
##1F12731.0015.081.3915.08
#FFFFFF15.081.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A76
Deuteranopia (green-blind)
#002271
Tritanopia (blue-blind)
#003043
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #1f1273;
/* rgb */ color: rgb(31, 18, 115);
/* oklch */ color: oklch(28.6% 0.153 276.7);
Tailwind
colors: {
  custom: {
    50: '#6a539c',
    500: '#1f1273',
    950: '#000000',
  },
}
SCSS
$custom: #1f1273;
$custom-light: #6a539c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1273",
  "rgb": {
    "r": 31,
    "g": 18,
    "b": 115
  },
  "hsl": {
    "h": 248.041,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.28629,
    "c": 0.15264,
    "h": 276.7
  },
  "luminance": 0.01962
}

Semantic roles & 50–950 ramp

primary
#1F1273
secondary
#9AAA37
accent
#F038D7
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1F1273

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

Preview Lab → · Contrast checker → · Palette generator →

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