#1F2F83#1F2F83

#1F2F83 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.1% C 0.142 H 269.2°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#1F2F83
RGBrgb(31, 47, 131)
HSLhsl(230, 62%, 32%)
HSVhsv(230, 76%, 51%)
CMYKcmyk(76.3%, 64.1%, 0%, 48.6%)
CIE-LABlab(23.55, 24.99, -49.06)
CIE-LCHlch(23.55, 55.05, 296.99°)
OKLaboklab(35.07% -0.0019 -0.1417)
OKLCHoklch(35.07% 0.142 269.2)
XYZxyz(5.6769, 3.9624, 21.9340)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2F83 #83731F
analogous
#1F6183 #1F2F83 #411F83
triadic
#1F2F83 #831F2F #2F831F
tetradic
#1F2F83 #831F61 #83731F #1F8341
square
#1F2F83 #831F61 #83731F #1F8341
split-complementary
#1F2F83 #83411F #61831F
monochromatic
#080B20 #131D52 #1F2F83 #2B41B4 #495FD4

Accessibility & contrast

On white

11.71
#1F2F83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#1F2F83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2F83
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2F83#FFFFFF#000000##FFFFFF
##1F2F831.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D86
Deuteranopia (green-blind)
#003381
Tritanopia (blue-blind)
#004554
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f2f83;
/* rgb */ color: rgb(31, 47, 131);
/* oklch */ color: oklch(35.1% 0.142 269.2);
Tailwind
colors: {
  custom: {
    50: '#6b67a8',
    500: '#1f2f83',
    950: '#000000',
  },
}
SCSS
$custom: #1f2f83;
$custom-light: #6b67a8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2f83",
  "rgb": {
    "r": 31,
    "g": 47,
    "b": 131
  },
  "hsl": {
    "h": 230.4,
    "s": 61.728,
    "l": 31.765
  },
  "oklch": {
    "l": 0.35068,
    "c": 0.14176,
    "h": 269.2
  },
  "luminance": 0.03963
}

Semantic roles & 50–950 ramp

primary
#1F2F83
secondary
#B6A448
accent
#CB43E5
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080610
muted
#7A7A7F

Preview Lab

Preview with #1F2F83

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

Preview Lab → · Contrast checker → · Palette generator →

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