#1F1672#1F1672

#1F1672 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.0% C 0.148 H 276.3°. Best body text is #FFFFFF at 14.83:1 contrast (WCAG AA passes).

Color values

HEX#1F1672
RGBrgb(31, 22, 114)
HSLhsl(246, 68%, 27%)
HSVhsv(246, 81%, 45%)
CMYKcmyk(72.8%, 80.7%, 0%, 55.3%)
CIE-LABlab(15.90, 34.78, -50.79)
CIE-LCHlch(15.90, 61.56, 304.41°)
OKLaboklab(29.02% 0.0162 -0.1468)
OKLCHoklch(29.02% 0.148 276.3)
XYZxyz(3.8883, 2.0797, 16.1128)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1672 #697216
analogous
#163B72 #1F1672 #4D1672
triadic
#1F1672 #721F16 #16721F
tetradic
#1F1672 #72163B #697216 #16724D
square
#1F1672 #72163B #697216 #16724D
split-complementary
#1F1672 #724D16 #3B7216
monochromatic
#07051A #110C3F #1F1672 #2D20A5 #3D2CD6

Accessibility & contrast

On white

14.83
#1F1672 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F1672
14.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1672#FFFFFF#000000##FFFFFF
##1F16721.0014.831.4214.83
#FFFFFF14.831.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B75
Deuteranopia (green-blind)
#002370
Tritanopia (blue-blind)
#003143
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1f1672;
/* rgb */ color: rgb(31, 22, 114);
/* oklch */ color: oklch(29.0% 0.148 276.3);
Tailwind
colors: {
  custom: {
    50: '#69559c',
    500: '#1f1672',
    950: '#000000',
  },
}
SCSS
$custom: #1f1672;
$custom-light: #69559c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1672",
  "rgb": {
    "r": 31,
    "g": 22,
    "b": 114
  },
  "hsl": {
    "h": 245.87,
    "s": 67.647,
    "l": 26.667
  },
  "oklch": {
    "l": 0.29024,
    "c": 0.1477,
    "h": 276.3
  },
  "luminance": 0.0208
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F1672

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

Preview Lab → · Contrast checker → · Palette generator →

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