#1F307E#1F307E

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

Color values

HEX#1F307E
RGBrgb(31, 48, 126)
HSLhsl(229, 61%, 31%)
HSVhsv(229, 75%, 49%)
CMYKcmyk(75.4%, 61.9%, 0%, 50.6%)
CIE-LABlab(23.38, 22.34, -46.19)
CIE-LCHlch(23.38, 51.31, 295.81°)
OKLaboklab(34.8% -0.0026 -0.1333)
OKLCHoklch(34.8% 0.133 268.9)
XYZxyz(5.3866, 3.9110, 20.2056)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F307E #7E6D1F
analogous
#1F5F7E #1F307E #3D1F7E
triadic
#1F307E #7E1F30 #307E1F
tetradic
#1F307E #7E1F5F #7E6D1F #1F7E3D
square
#1F307E #7E1F5F #7E6D1F #1F7E3D
split-complementary
#1F307E #7E3D1F #5F7E1F
monochromatic
#070B1C #131D4D #1F307E #2B43AF #465FD1

Accessibility & contrast

On white

11.78
#1F307E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F307E
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F307E#FFFFFF#000000##FFFFFF
##1F307E1.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C81
Deuteranopia (green-blind)
#00337C
Tritanopia (blue-blind)
#004452
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f307e;
/* rgb */ color: rgb(31, 48, 126);
/* oklch */ color: oklch(34.8% 0.133 268.9);
Tailwind
colors: {
  custom: {
    50: '#6968a4',
    500: '#1f307e',
    950: '#000000',
  },
}
SCSS
$custom: #1f307e;
$custom-light: #6968a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f307e",
  "rgb": {
    "r": 31,
    "g": 48,
    "b": 126
  },
  "hsl": {
    "h": 229.263,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34804,
    "c": 0.13334,
    "h": 268.9
  },
  "luminance": 0.03912
}

Semantic roles & 50–950 ramp

primary
#1F307E
secondary
#B19E48
accent
#C744E4
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1F307E

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

Preview Lab → · Contrast checker → · Palette generator →

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