#1F2183#1F2183

#1F2183 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.6% C 0.158 H 272.5°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).

Color values

HEX#1F2183
RGBrgb(31, 33, 131)
HSLhsl(239, 62%, 32%)
HSVhsv(239, 76%, 51%)
CMYKcmyk(76.3%, 74.8%, 0%, 48.6%)
CIE-LABlab(20.11, 34.21, -54.70)
CIE-LCHlch(20.11, 64.51, 302.02°)
OKLaboklab(32.57% 0.0068 -0.1583)
OKLCHoklch(32.57% 0.158 272.5)
XYZxyz(5.2043, 3.0172, 21.7764)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2183 #83811F
analogous
#1F5383 #1F2183 #4F1F83
triadic
#1F2183 #831F21 #21831F
tetradic
#1F2183 #831F53 #83811F #1F834F
square
#1F2183 #831F53 #83811F #1F834F
split-complementary
#1F2183 #834F1F #53831F
monochromatic
#080820 #131552 #1F2183 #2B2DB4 #494BD4

Accessibility & contrast

On white

13.10
#1F2183 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#1F2183 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2183
13.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2183#FFFFFF#000000##FFFFFF
##1F21831.0013.101.6013.10
#FFFFFF13.101.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003586
Deuteranopia (green-blind)
#002C81
Tritanopia (blue-blind)
#003D50
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1f2183;
/* rgb */ color: rgb(31, 33, 131);
/* oklch */ color: oklch(32.6% 0.158 272.5);
Tailwind
colors: {
  custom: {
    50: '#6c5da8',
    500: '#1f2183',
    950: '#000000',
  },
}
SCSS
$custom: #1f2183;
$custom-light: #6c5da8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2183",
  "rgb": {
    "r": 31,
    "g": 33,
    "b": 131
  },
  "hsl": {
    "h": 238.8,
    "s": 61.728,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32572,
    "c": 0.15843,
    "h": 272.5
  },
  "luminance": 0.03018
}

Semantic roles & 50–950 ramp

primary
#1F2183
secondary
#B6B448
accent
#E243E5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1F2183

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

Preview Lab → · Contrast checker → · Palette generator →

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