#1F2380#1F2380

#1F2380 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.6% C 0.152 H 272.3°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#1F2380
RGBrgb(31, 35, 128)
HSLhsl(238, 61%, 31%)
HSVhsv(238, 76%, 50%)
CMYKcmyk(75.8%, 72.7%, 0%, 49.8%)
CIE-LABlab(20.25, 31.86, -52.58)
CIE-LCHlch(20.25, 61.48, 301.22°)
OKLaboklab(32.57% 0.0062 -0.1521)
OKLCHoklch(32.57% 0.152 272.3)
XYZxyz(5.0611, 3.0514, 20.7401)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2380 #807C1F
analogous
#1F5380 #1F2380 #4B1F80
triadic
#1F2380 #801F23 #23801F
tetradic
#1F2380 #801F53 #807C1F #1F804B
square
#1F2380 #801F53 #807C1F #1F804B
split-complementary
#1F2380 #804B1F #53801F
monochromatic
#07081D #13164F #1F2380 #2B30B1 #474DD2

Accessibility & contrast

On white

13.04
#1F2380 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#1F2380 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2380
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2380#FFFFFF#000000##FFFFFF
##1F23801.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003583
Deuteranopia (green-blind)
#002C7E
Tritanopia (blue-blind)
#003D4F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1f2380;
/* rgb */ color: rgb(31, 35, 128);
/* oklch */ color: oklch(32.6% 0.152 272.3);
Tailwind
colors: {
  custom: {
    50: '#6b5ea6',
    500: '#1f2380',
    950: '#000000',
  },
}
SCSS
$custom: #1f2380;
$custom-light: #6b5ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2380",
  "rgb": {
    "r": 31,
    "g": 35,
    "b": 128
  },
  "hsl": {
    "h": 237.526,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32574,
    "c": 0.15224,
    "h": 272.3
  },
  "luminance": 0.03052
}

Semantic roles & 50–950 ramp

primary
#1F2380
secondary
#B3AF48
accent
#DE44E4
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #1F2380

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

Preview Lab → · Contrast checker → · Palette generator →

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