#1F2F7F#1F2F7F

#1F2F7F is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.7% C 0.136 H 269.2°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#1F2F7F
RGBrgb(31, 47, 127)
HSLhsl(230, 61%, 31%)
HSVhsv(230, 76%, 50%)
CMYKcmyk(75.6%, 63%, 0%, 50.2%)
CIE-LABlab(23.19, 23.42, -47.12)
CIE-LCHlch(23.19, 52.62, 296.43°)
OKLaboklab(34.69% -0.0018 -0.1361)
OKLCHoklch(34.69% 0.136 269.2)
XYZxyz(5.4110, 3.8561, 20.5337)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2F7F #7F6F1F
analogous
#1F5F7F #1F2F7F #3F1F7F
triadic
#1F2F7F #7F1F2F #2F7F1F
tetradic
#1F2F7F #7F1F5F #7F6F1F #1F7F3F
square
#1F2F7F #7F1F5F #7F6F1F #1F7F3F
split-complementary
#1F2F7F #7F3F1F #5F7F1F
monochromatic
#070B1D #131D4E #1F2F7F #2B41B0 #465ED2

Accessibility & contrast

On white

11.86
#1F2F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#1F2F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2F7F
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2F7F#FFFFFF#000000##FFFFFF
##1F2F7F1.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C82
Deuteranopia (green-blind)
#00337D
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1f2f7f;
/* rgb */ color: rgb(31, 47, 127);
/* oklch */ color: oklch(34.7% 0.136 269.2);
Tailwind
colors: {
  custom: {
    50: '#6a67a5',
    500: '#1f2f7f',
    950: '#000000',
  },
}
SCSS
$custom: #1f2f7f;
$custom-light: #6a67a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2f7f",
  "rgb": {
    "r": 31,
    "g": 47,
    "b": 127
  },
  "hsl": {
    "h": 230,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34693,
    "c": 0.13609,
    "h": 269.2
  },
  "luminance": 0.03857
}

Semantic roles & 50–950 ramp

primary
#1F2F7F
secondary
#B2A048
accent
#C944E4
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1F2F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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