#1F2F9F#1F2F9F

#1F2F9F is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.9% C 0.179 H 268.8°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#1F2F9F
RGBrgb(31, 47, 159)
HSLhsl(233, 67%, 37%)
HSVhsv(233, 81%, 62%)
CMYKcmyk(80.5%, 70.4%, 0%, 37.6%)
CIE-LABlab(26.23, 35.58, -61.95)
CIE-LCHlch(26.23, 71.44, 299.87°)
OKLaboklab(37.85% -0.0037 -0.1794)
OKLCHoklch(37.85% 0.179 268.8)
XYZxyz(7.8374, 4.8266, 33.3127)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2F9F #9F8F1F
analogous
#1F6F9F #1F2F9F #4F1F9F
triadic
#1F2F9F #9F1F2F #2F9F1F
tetradic
#1F2F9F #9F1F6F #9F8F1F #1F9F4F
square
#1F2F9F #9F1F6F #9F8F1F #1F9F4F
split-complementary
#1F2F9F #9F4F1F #6F9F1F
monochromatic
#0B1139 #15206C #1F2F9F #293ED2 #5A6ADF

Accessibility & contrast

On white

10.68
#1F2F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#1F2F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2F9F
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2F9F#FFFFFF#000000##FFFFFF
##1F2F9F1.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A2
Deuteranopia (green-blind)
#00389D
Tritanopia (blue-blind)
#004E63
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #1f2f9f;
/* rgb */ color: rgb(31, 47, 159);
/* oklch */ color: oklch(37.9% 0.179 268.8);
Tailwind
colors: {
  custom: {
    50: '#7268bc',
    500: '#1f2f9f',
    950: '#000000',
  },
}
SCSS
$custom: #1f2f9f;
$custom-light: #7268bc;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2f9f",
  "rgb": {
    "r": 31,
    "g": 47,
    "b": 159
  },
  "hsl": {
    "h": 232.5,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.37852,
    "c": 0.17947,
    "h": 268.8
  },
  "luminance": 0.04828
}

Semantic roles & 50–950 ramp

primary
#1F2F9F
secondary
#C3B557
accent
#D53EEA
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #1F2F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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