#1F2A9A#1F2A9A

#1F2A9A is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.5% C 0.179 H 269.7°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#1F2A9A
RGBrgb(31, 42, 154)
HSLhsl(235, 66%, 36%)
HSVhsv(235, 80%, 60%)
CMYKcmyk(79.9%, 72.7%, 0%, 39.6%)
CIE-LABlab(24.57, 36.90, -61.63)
CIE-LCHlch(24.57, 71.83, 300.91°)
OKLaboklab(36.5% -0.0009 -0.1785)
OKLCHoklch(36.5% 0.179 269.7)
XYZxyz(7.2238, 4.2795, 31.0109)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2A9A #9A8F1F
analogous
#1F689A #1F2A9A #521F9A
triadic
#1F2A9A #9A1F2A #2A9A1F
tetradic
#1F2A9A #9A1F68 #9A8F1F #1F9A52
square
#1F2A9A #9A1F68 #9A8F1F #1F9A52
split-complementary
#1F2A9A #9A521F #689A1F
monochromatic
#0A0E34 #151C67 #1F2A9A #2938CD #5662DD

Accessibility & contrast

On white

11.31
#1F2A9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#1F2A9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2A9A
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2A9A#FFFFFF#000000##FFFFFF
##1F2A9A1.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409D
Deuteranopia (green-blind)
#003498
Tritanopia (blue-blind)
#004A5F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1f2a9a;
/* rgb */ color: rgb(31, 42, 154);
/* oklch */ color: oklch(36.5% 0.179 269.7);
Tailwind
colors: {
  custom: {
    50: '#7164b9',
    500: '#1f2a9a',
    950: '#000000',
  },
}
SCSS
$custom: #1f2a9a;
$custom-light: #7164b9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2a9a",
  "rgb": {
    "r": 31,
    "g": 42,
    "b": 154
  },
  "hsl": {
    "h": 234.634,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36501,
    "c": 0.17851,
    "h": 269.7
  },
  "luminance": 0.0428
}

Semantic roles & 50–950 ramp

primary
#1F2A9A
secondary
#C1B754
accent
#DA3EE9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090512
muted
#7B7A81

Preview Lab

Preview with #1F2A9A

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

Preview Lab → · Contrast checker → · Palette generator →

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