#1F2162#1F2162

#1F2162 is a dark, moderate blue. Relative luminance 0.023; OKLCH L 29.2% C 0.112 H 275.6°. Best body text is #FFFFFF at 14.46:1 contrast (WCAG AA passes).

Color values

HEX#1F2162
RGBrgb(31, 33, 98)
HSLhsl(238, 52%, 25%)
HSVhsv(238, 68%, 38%)
CMYKcmyk(68.4%, 66.3%, 0%, 61.6%)
CIE-LABlab(16.80, 21.95, -38.84)
CIE-LCHlch(16.80, 44.62, 299.47°)
OKLaboklab(29.17% 0.0109 -0.1119)
OKLCHoklch(29.17% 0.112 275.6)
XYZxyz(3.3128, 2.2606, 11.8147)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2162 #62601F
analogous
#1F4262 #1F2162 #3E1F62
triadic
#1F2162 #621F21 #21621F
tetradic
#1F2162 #621F42 #62601F #1F623E
square
#1F2162 #621F42 #62601F #1F623E
split-complementary
#1F2162 #623E1F #42621F
monochromatic
#070817 #101134 #1F2162 #2E3190 #3C40BF

Accessibility & contrast

On white

14.46
#1F2162 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#1F2162 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2162
14.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2162#FFFFFF#000000##FFFFFF
##1F21621.0014.461.4514.46
#FFFFFF14.461.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C64
Deuteranopia (green-blind)
#002761
Tritanopia (blue-blind)
#00313E
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1f2162;
/* rgb */ color: rgb(31, 33, 98);
/* oklch */ color: oklch(29.2% 0.112 275.6);
Tailwind
colors: {
  custom: {
    50: '#645c8f',
    500: '#1f2162',
    950: '#000000',
  },
}
SCSS
$custom: #1f2162;
$custom-light: #645c8f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2162",
  "rgb": {
    "r": 31,
    "g": 33,
    "b": 98
  },
  "hsl": {
    "h": 238.209,
    "s": 51.938,
    "l": 25.294
  },
  "oklch": {
    "l": 0.29167,
    "c": 0.11244,
    "h": 275.6
  },
  "luminance": 0.02261
}

Semantic roles & 50–950 ramp

primary
#1F2162
secondary
#979446
accent
#D74CDB
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #1F2162

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

Preview Lab → · Contrast checker → · Palette generator →

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