#1F2284#1F2284

#1F2284 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.8% C 0.159 H 272.2°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#1F2284
RGBrgb(31, 34, 132)
HSLhsl(238, 62%, 32%)
HSVhsv(238, 77%, 52%)
CMYKcmyk(76.5%, 74.2%, 0%, 48.2%)
CIE-LABlab(20.44, 33.95, -54.78)
CIE-LCHlch(20.44, 64.45, 301.78°)
OKLaboklab(32.84% 0.0061 -0.1585)
OKLCHoklch(32.84% 0.159 272.2)
XYZxyz(5.3006, 3.1008, 22.1445)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2284 #84811F
analogous
#1F5584 #1F2284 #4F1F84
triadic
#1F2284 #841F22 #22841F
tetradic
#1F2284 #841F55 #84811F #1F844F
square
#1F2284 #841F55 #84811F #1F844F
split-complementary
#1F2284 #844F1F #55841F
monochromatic
#080821 #131552 #1F2284 #2B2FB6 #494DD4

Accessibility & contrast

On white

12.96
#1F2284 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#1F2284 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2284
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2284#FFFFFF#000000##FFFFFF
##1F22841.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003687
Deuteranopia (green-blind)
#002C82
Tritanopia (blue-blind)
#003E50
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1f2284;
/* rgb */ color: rgb(31, 34, 132);
/* oklch */ color: oklch(32.8% 0.159 272.2);
Tailwind
colors: {
  custom: {
    50: '#6c5ea9',
    500: '#1f2284',
    950: '#000000',
  },
}
SCSS
$custom: #1f2284;
$custom-light: #6c5ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2284",
  "rgb": {
    "r": 31,
    "g": 34,
    "b": 132
  },
  "hsl": {
    "h": 238.218,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.3284,
    "c": 0.15865,
    "h": 272.2
  },
  "luminance": 0.03101
}

Semantic roles & 50–950 ramp

primary
#1F2284
secondary
#B7B348
accent
#E043E5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1F2284

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

Preview Lab → · Contrast checker → · Palette generator →

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