#1F307D#1F307D

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

Color values

HEX#1F307D
RGBrgb(31, 48, 125)
HSLhsl(229, 60%, 31%)
HSVhsv(229, 75%, 49%)
CMYKcmyk(75.2%, 61.6%, 0%, 51%)
CIE-LABlab(23.29, 21.94, -45.70)
CIE-LCHlch(23.29, 50.69, 295.65°)
OKLaboklab(34.71% -0.0026 -0.1319)
OKLCHoklch(34.71% 0.132 268.9)
XYZxyz(5.3224, 3.8853, 19.8675)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F307D #7D6C1F
analogous
#1F5F7D #1F307D #3D1F7D
triadic
#1F307D #7D1F30 #307D1F
tetradic
#1F307D #7D1F5F #7D6C1F #1F7D3D
square
#1F307D #7D1F5F #7D6C1F #1F7D3D
split-complementary
#1F307D #7D3D1F #5F7D1F
monochromatic
#070A1B #131D4C #1F307D #2B43AE #455FD1

Accessibility & contrast

On white

11.82
#1F307D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#1F307D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F307D
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F307D#FFFFFF#000000##FFFFFF
##1F307D1.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C80
Deuteranopia (green-blind)
#00337B
Tritanopia (blue-blind)
#004351
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1f307d;
/* rgb */ color: rgb(31, 48, 125);
/* oklch */ color: oklch(34.7% 0.132 268.9);
Tailwind
colors: {
  custom: {
    50: '#6968a3',
    500: '#1f307d',
    950: '#000000',
  },
}
SCSS
$custom: #1f307d;
$custom-light: #6968a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f307d",
  "rgb": {
    "r": 31,
    "g": 48,
    "b": 125
  },
  "hsl": {
    "h": 229.149,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34712,
    "c": 0.1319,
    "h": 268.9
  },
  "luminance": 0.03886
}

Semantic roles & 50–950 ramp

primary
#1F307D
secondary
#B09D48
accent
#C744E3
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1F307D

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

Preview Lab → · Contrast checker → · Palette generator →

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