#1F2F8A#1F2F8A

#1F2F8A is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.7% C 0.151 H 269.2°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#1F2F8A
RGBrgb(31, 47, 138)
HSLhsl(231, 63%, 33%)
HSVhsv(231, 78%, 54%)
CMYKcmyk(77.5%, 65.9%, 0%, 45.9%)
CIE-LABlab(24.19, 27.69, -52.38)
CIE-LCHlch(24.19, 59.25, 297.86°)
OKLaboklab(35.74% -0.0021 -0.1515)
OKLCHoklch(35.74% 0.152 269.2)
XYZxyz(6.1675, 4.1586, 24.5175)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2F8A #8A7A1F
analogous
#1F648A #1F2F8A #441F8A
triadic
#1F2F8A #8A1F2F #2F8A1F
tetradic
#1F2F8A #8A1F64 #8A7A1F #1F8A44
square
#1F2F8A #8A1F64 #8A7A1F #1F8A44
split-complementary
#1F2F8A #8A441F #648A1F
monochromatic
#090D26 #141E58 #1F2F8A #2A40BC #4C61D7

Accessibility & contrast

On white

11.46
#1F2F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#1F2F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2F8A
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2F8A#FFFFFF#000000##FFFFFF
##1F2F8A1.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8D
Deuteranopia (green-blind)
#003588
Tritanopia (blue-blind)
#004758
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1f2f8a;
/* rgb */ color: rgb(31, 47, 138);
/* oklch */ color: oklch(35.7% 0.151 269.2);
Tailwind
colors: {
  custom: {
    50: '#6d67ad',
    500: '#1f2f8a',
    950: '#000000',
  },
}
SCSS
$custom: #1f2f8a;
$custom-light: #6d67ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2f8a",
  "rgb": {
    "r": 31,
    "g": 47,
    "b": 138
  },
  "hsl": {
    "h": 231.028,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35739,
    "c": 0.1515,
    "h": 269.2
  },
  "luminance": 0.04159
}

Semantic roles & 50–950 ramp

primary
#1F2F8A
secondary
#BAA94B
accent
#CE41E6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #1F2F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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