#1F307F#1F307F

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

Color values

HEX#1F307F
RGBrgb(31, 48, 127)
HSLhsl(229, 61%, 31%)
HSVhsv(229, 76%, 50%)
CMYKcmyk(75.6%, 62.2%, 0%, 50.2%)
CIE-LABlab(23.46, 22.73, -46.68)
CIE-LCHlch(23.46, 51.92, 295.96°)
OKLaboklab(34.89% -0.0026 -0.1348)
OKLCHoklch(34.89% 0.135 268.9)
XYZxyz(5.4515, 3.9369, 20.5472)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F307F #7F6E1F
analogous
#1F607F #1F307F #3E1F7F
triadic
#1F307F #7F1F30 #307F1F
tetradic
#1F307F #7F1F60 #7F6E1F #1F7F3E
square
#1F307F #7F1F60 #7F6E1F #1F7F3E
split-complementary
#1F307F #7F3E1F #607F1F
monochromatic
#070B1D #131D4E #1F307F #2B43B0 #465FD2

Accessibility & contrast

On white

11.75
#1F307F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#1F307F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F307F
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F307F#FFFFFF#000000##FFFFFF
##1F307F1.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C82
Deuteranopia (green-blind)
#00347D
Tritanopia (blue-blind)
#004452
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f307f;
/* rgb */ color: rgb(31, 48, 127);
/* oklch */ color: oklch(34.9% 0.135 268.9);
Tailwind
colors: {
  custom: {
    50: '#6a68a5',
    500: '#1f307f',
    950: '#000000',
  },
}
SCSS
$custom: #1f307f;
$custom-light: #6a68a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f307f",
  "rgb": {
    "r": 31,
    "g": 48,
    "b": 127
  },
  "hsl": {
    "h": 229.375,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34895,
    "c": 0.13478,
    "h": 268.9
  },
  "luminance": 0.03938
}

Semantic roles & 50–950 ramp

primary
#1F307F
secondary
#B29F48
accent
#C844E4
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1F307F

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

Preview Lab → · Contrast checker → · Palette generator →

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