#1F1673#1F1673

#1F1673 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.1% C 0.149 H 276.2°. Best body text is #FFFFFF at 14.78:1 contrast (WCAG AA passes).

Color values

HEX#1F1673
RGBrgb(31, 22, 115)
HSLhsl(246, 68%, 27%)
HSVhsv(246, 81%, 45%)
CMYKcmyk(73%, 80.9%, 0%, 54.9%)
CIE-LABlab(16.02, 35.12, -51.24)
CIE-LCHlch(16.02, 62.12, 304.43°)
OKLaboklab(29.14% 0.016 -0.1481)
OKLCHoklch(29.14% 0.149 276.2)
XYZxyz(3.9455, 2.1026, 16.4142)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1673 #6A7316
analogous
#163C73 #1F1673 #4E1673
triadic
#1F1673 #731F16 #16731F
tetradic
#1F1673 #73163C #6A7316 #16734E
square
#1F1673 #73163C #6A7316 #16734E
split-complementary
#1F1673 #734E16 #3C7316
monochromatic
#07051A #110C40 #1F1673 #2D20A6 #3D2DD7

Accessibility & contrast

On white

14.78
#1F1673 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#1F1673 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1673
14.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1673#FFFFFF#000000##FFFFFF
##1F16731.0014.781.4214.78
#FFFFFF14.781.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C76
Deuteranopia (green-blind)
#002471
Tritanopia (blue-blind)
#003244
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1f1673;
/* rgb */ color: rgb(31, 22, 115);
/* oklch */ color: oklch(29.1% 0.149 276.2);
Tailwind
colors: {
  custom: {
    50: '#69559c',
    500: '#1f1673',
    950: '#000000',
  },
}
SCSS
$custom: #1f1673;
$custom-light: #69559c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1673",
  "rgb": {
    "r": 31,
    "g": 22,
    "b": 115
  },
  "hsl": {
    "h": 245.806,
    "s": 67.883,
    "l": 26.863
  },
  "oklch": {
    "l": 0.2914,
    "c": 0.14899,
    "h": 276.2
  },
  "luminance": 0.02103
}

Semantic roles & 50–950 ramp

primary
#1F1673
secondary
#9EA93C
accent
#EB3DDA
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1F1673

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

Preview Lab → · Contrast checker → · Palette generator →

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