#1F307A#1F307A

#1F307A is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.4% C 0.128 H 268.8°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#1F307A
RGBrgb(31, 48, 122)
HSLhsl(229, 59%, 30%)
HSVhsv(229, 75%, 48%)
CMYKcmyk(74.6%, 60.7%, 0%, 52.2%)
CIE-LABlab(23.03, 20.76, -44.22)
CIE-LCHlch(23.03, 48.85, 295.15°)
OKLaboklab(34.44% -0.0026 -0.1275)
OKLCHoklch(34.44% 0.128 268.8)
XYZxyz(5.1337, 3.8098, 18.8734)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F307A #7A691F
analogous
#1F5E7A #1F307A #3B1F7A
triadic
#1F307A #7A1F30 #307A1F
tetradic
#1F307A #7A1F5E #7A691F #1F7A3B
square
#1F307A #7A1F5E #7A691F #1F7A3B
split-complementary
#1F307A #7A3B1F #5E7A1F
monochromatic
#060A18 #131D49 #1F307A #2B43AB #445ECF

Accessibility & contrast

On white

11.92
#1F307A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#1F307A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F307A
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F307A#FFFFFF#000000##FFFFFF
##1F307A1.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7C
Deuteranopia (green-blind)
#003379
Tritanopia (blue-blind)
#004250
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1f307a;
/* rgb */ color: rgb(31, 48, 122);
/* oklch */ color: oklch(34.4% 0.128 268.8);
Tailwind
colors: {
  custom: {
    50: '#6868a1',
    500: '#1f307a',
    950: '#000000',
  },
}
SCSS
$custom: #1f307a;
$custom-light: #6868a1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f307a",
  "rgb": {
    "r": 31,
    "g": 48,
    "b": 122
  },
  "hsl": {
    "h": 228.791,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.34441,
    "c": 0.12756,
    "h": 268.8
  },
  "luminance": 0.0381
}

Semantic roles & 50–950 ramp

primary
#1F307A
secondary
#AD9A47
accent
#C545E3
background
#F6F6FA
surface
#EBEBF3
border
#C6C6CD
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1F307A

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

Preview Lab → · Contrast checker → · Palette generator →

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