#1F307C#1F307C

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

Color values

HEX#1F307C
RGBrgb(31, 48, 124)
HSLhsl(229, 60%, 30%)
HSVhsv(229, 75%, 49%)
CMYKcmyk(75%, 61.3%, 0%, 51.4%)
CIE-LABlab(23.20, 21.55, -45.21)
CIE-LCHlch(23.20, 50.08, 295.49°)
OKLaboklab(34.62% -0.0026 -0.1304)
OKLCHoklch(34.62% 0.13 268.9)
XYZxyz(5.2589, 3.8599, 19.5328)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F307C #7C6B1F
analogous
#1F5E7C #1F307C #3C1F7C
triadic
#1F307C #7C1F30 #307C1F
tetradic
#1F307C #7C1F5E #7C6B1F #1F7C3C
square
#1F307C #7C1F5E #7C6B1F #1F7C3C
split-complementary
#1F307C #7C3C1F #5E7C1F
monochromatic
#070A1A #131D4B #1F307C #2B43AD #455ED0

Accessibility & contrast

On white

11.85
#1F307C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F307C
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F307C#FFFFFF#000000##FFFFFF
##1F307C1.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f307c;
/* rgb */ color: rgb(31, 48, 124);
/* oklch */ color: oklch(34.6% 0.130 268.9);
Tailwind
colors: {
  custom: {
    50: '#6968a3',
    500: '#1f307c',
    950: '#000000',
  },
}
SCSS
$custom: #1f307c;
$custom-light: #6968a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f307c",
  "rgb": {
    "r": 31,
    "g": 48,
    "b": 124
  },
  "hsl": {
    "h": 229.032,
    "s": 60,
    "l": 30.392
  },
  "oklch": {
    "l": 0.34622,
    "c": 0.13047,
    "h": 268.9
  },
  "luminance": 0.0386
}

Semantic roles & 50–950 ramp

primary
#1F307C
secondary
#AF9C48
accent
#C645E3
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1F307C

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

Preview Lab → · Contrast checker → · Palette generator →

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