#1F2383#1F2383

#1F2383 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.9% C 0.156 H 272.1°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#1F2383
RGBrgb(31, 35, 131)
HSLhsl(238, 62%, 32%)
HSVhsv(238, 76%, 51%)
CMYKcmyk(76.3%, 73.3%, 0%, 48.6%)
CIE-LABlab(20.56, 32.96, -53.95)
CIE-LCHlch(20.56, 63.23, 301.42°)
OKLaboklab(32.89% 0.0058 -0.1561)
OKLCHoklch(32.89% 0.156 272.1)
XYZxyz(5.2615, 3.1315, 21.7955)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2383 #837F1F
analogous
#1F5583 #1F2383 #4D1F83
triadic
#1F2383 #831F23 #23831F
tetradic
#1F2383 #831F55 #837F1F #1F834D
square
#1F2383 #831F55 #837F1F #1F834D
split-complementary
#1F2383 #834D1F #55831F
monochromatic
#080920 #131652 #1F2383 #2B30B4 #494ED4

Accessibility & contrast

On white

12.91
#1F2383 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#1F2383 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2383
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2383#FFFFFF#000000##FFFFFF
##1F23831.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003686
Deuteranopia (green-blind)
#002D81
Tritanopia (blue-blind)
#003E50
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1f2383;
/* rgb */ color: rgb(31, 35, 131);
/* oklch */ color: oklch(32.9% 0.156 272.1);
Tailwind
colors: {
  custom: {
    50: '#6c5ea8',
    500: '#1f2383',
    950: '#000000',
  },
}
SCSS
$custom: #1f2383;
$custom-light: #6c5ea8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2383",
  "rgb": {
    "r": 31,
    "g": 35,
    "b": 131
  },
  "hsl": {
    "h": 237.6,
    "s": 61.728,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32894,
    "c": 0.15623,
    "h": 272.1
  },
  "luminance": 0.03132
}

Semantic roles & 50–950 ramp

primary
#1F2383
secondary
#B6B148
accent
#DE43E5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1F2383

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

Preview Lab → · Contrast checker → · Palette generator →

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