#1F2AA0#1F2AA0

#1F2AA0 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.1% C 0.186 H 269.5°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#1F2AA0
RGBrgb(31, 42, 160)
HSLhsl(235, 68%, 37%)
HSVhsv(235, 81%, 63%)
CMYKcmyk(80.6%, 73.8%, 0%, 37.3%)
CIE-LABlab(25.21, 39.05, -64.24)
CIE-LCHlch(25.21, 75.18, 301.29°)
OKLaboklab(37.15% -0.0017 -0.1861)
OKLCHoklch(37.15% 0.186 269.5)
XYZxyz(7.7360, 4.4844, 33.7087)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2AA0 #A0951F
analogous
#1F6AA0 #1F2AA0 #551FA0
triadic
#1F2AA0 #A01F2A #2AA01F
tetradic
#1F2AA0 #A01F6A #A0951F #1FA055
square
#1F2AA0 #A01F6A #A0951F #1FA055
split-complementary
#1F2AA0 #A0551F #6AA01F
monochromatic
#0B0F39 #151D6D #1F2AA0 #2937D3 #5A66DF

Accessibility & contrast

On white

11.07
#1F2AA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#1F2AA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2AA0
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2AA0#FFFFFF#000000##FFFFFF
##1F2AA01.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A3
Deuteranopia (green-blind)
#00359E
Tritanopia (blue-blind)
#004C62
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #1f2aa0;
/* rgb */ color: rgb(31, 42, 160);
/* oklch */ color: oklch(37.1% 0.186 269.5);
Tailwind
colors: {
  custom: {
    50: '#7364bd',
    500: '#1f2aa0',
    950: '#000000',
  },
}
SCSS
$custom: #1f2aa0;
$custom-light: #7364bd;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2aa0",
  "rgb": {
    "r": 31,
    "g": 42,
    "b": 160
  },
  "hsl": {
    "h": 234.884,
    "s": 67.539,
    "l": 37.451
  },
  "oklch": {
    "l": 0.37148,
    "c": 0.18611,
    "h": 269.5
  },
  "luminance": 0.04485
}

Semantic roles & 50–950 ramp

primary
#1F2AA0
secondary
#C3BA58
accent
#DC3DEA
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #1F2AA0

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

Preview Lab → · Contrast checker → · Palette generator →

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