#1F307B#1F307B

#1F307B is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.5% C 0.129 H 268.9°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#1F307B
RGBrgb(31, 48, 123)
HSLhsl(229, 60%, 30%)
HSVhsv(229, 75%, 48%)
CMYKcmyk(74.8%, 61%, 0%, 51.8%)
CIE-LABlab(23.12, 21.15, -44.71)
CIE-LCHlch(23.12, 49.46, 295.32°)
OKLaboklab(34.53% -0.0026 -0.129)
OKLCHoklch(34.53% 0.129 268.9)
XYZxyz(5.1959, 3.8347, 19.2014)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F307B #7B6A1F
analogous
#1F5E7B #1F307B #3C1F7B
triadic
#1F307B #7B1F30 #307B1F
tetradic
#1F307B #7B1F5E #7B6A1F #1F7B3C
square
#1F307B #7B1F5E #7B6A1F #1F7B3C
split-complementary
#1F307B #7B3C1F #5E7B1F
monochromatic
#060A19 #131D4A #1F307B #2B43AC #445ED0

Accessibility & contrast

On white

11.88
#1F307B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F307B
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F307B#FFFFFF#000000##FFFFFF
##1F307B1.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7E
Deuteranopia (green-blind)
#00337A
Tritanopia (blue-blind)
#004350
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1f307b;
/* rgb */ color: rgb(31, 48, 123);
/* oklch */ color: oklch(34.5% 0.129 268.9);
Tailwind
colors: {
  custom: {
    50: '#6968a2',
    500: '#1f307b',
    950: '#000000',
  },
}
SCSS
$custom: #1f307b;
$custom-light: #6968a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f307b",
  "rgb": {
    "r": 31,
    "g": 48,
    "b": 123
  },
  "hsl": {
    "h": 228.913,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.34531,
    "c": 0.12901,
    "h": 268.9
  },
  "luminance": 0.03835
}

Semantic roles & 50–950 ramp

primary
#1F307B
secondary
#AE9B48
accent
#C645E3
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1F307B

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

Preview Lab → · Contrast checker → · Palette generator →

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