#1F2F80#1F2F80

#1F2F80 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.8% C 0.138 H 269.2°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#1F2F80
RGBrgb(31, 47, 128)
HSLhsl(230, 61%, 31%)
HSVhsv(230, 76%, 50%)
CMYKcmyk(75.8%, 63.3%, 0%, 49.8%)
CIE-LABlab(23.28, 23.82, -47.61)
CIE-LCHlch(23.28, 53.23, 296.58°)
OKLaboklab(34.79% -0.0018 -0.1375)
OKLCHoklch(34.79% 0.138 269.2)
XYZxyz(5.4765, 3.8823, 20.8786)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2F80 #80701F
analogous
#1F5F80 #1F2F80 #3F1F80
triadic
#1F2F80 #801F2F #2F801F
tetradic
#1F2F80 #801F5F #80701F #1F803F
square
#1F2F80 #801F5F #80701F #1F803F
split-complementary
#1F2F80 #803F1F #5F801F
monochromatic
#070B1D #131D4F #1F2F80 #2B41B1 #475ED2

Accessibility & contrast

On white

11.82
#1F2F80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#1F2F80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2F80
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2F80#FFFFFF#000000##FFFFFF
##1F2F801.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C83
Deuteranopia (green-blind)
#00337E
Tritanopia (blue-blind)
#004452
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1f2f80;
/* rgb */ color: rgb(31, 47, 128);
/* oklch */ color: oklch(34.8% 0.138 269.2);
Tailwind
colors: {
  custom: {
    50: '#6a67a6',
    500: '#1f2f80',
    950: '#000000',
  },
}
SCSS
$custom: #1f2f80;
$custom-light: #6a67a6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2f80",
  "rgb": {
    "r": 31,
    "g": 47,
    "b": 128
  },
  "hsl": {
    "h": 230.103,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34786,
    "c": 0.13751,
    "h": 269.2
  },
  "luminance": 0.03883
}

Semantic roles & 50–950 ramp

primary
#1F2F80
secondary
#B3A148
accent
#CA44E4
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1F2F80

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

Preview Lab → · Contrast checker → · Palette generator →

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