#1F309D#1F309D

#1F309D is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.8% C 0.176 H 268.7°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#1F309D
RGBrgb(31, 48, 157)
HSLhsl(232, 67%, 37%)
HSVhsv(232, 80%, 62%)
CMYKcmyk(80.3%, 69.4%, 0%, 38.4%)
CIE-LABlab(26.27, 34.20, -60.67)
CIE-LCHlch(26.27, 69.65, 299.41°)
OKLaboklab(37.82% -0.004 -0.1757)
OKLCHoklch(37.82% 0.176 268.7)
XYZxyz(7.7057, 4.8386, 32.4196)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F309D #9D8C1F
analogous
#1F6F9D #1F309D #4D1F9D
triadic
#1F309D #9D1F30 #309D1F
tetradic
#1F309D #9D1F6F #9D8C1F #1F9D4D
square
#1F309D #9D1F6F #9D8C1F #1F9D4D
split-complementary
#1F309D #9D4D1F #6F9D1F
monochromatic
#0B1137 #15206A #1F309D #2940D0 #586ADE

Accessibility & contrast

On white

10.67
#1F309D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#1F309D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F309D
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F309D#FFFFFF#000000##FFFFFF
##1F309D1.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A0
Deuteranopia (green-blind)
#00389B
Tritanopia (blue-blind)
#004E62
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #1f309d;
/* rgb */ color: rgb(31, 48, 157);
/* oklch */ color: oklch(37.8% 0.176 268.7);
Tailwind
colors: {
  custom: {
    50: '#7268bb',
    500: '#1f309d',
    950: '#000000',
  },
}
SCSS
$custom: #1f309d;
$custom-light: #7268bb;
$custom-dark: #000000;
JSON
{
  "hex": "#1f309d",
  "rgb": {
    "r": 31,
    "g": 48,
    "b": 157
  },
  "hsl": {
    "h": 231.905,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37817,
    "c": 0.17576,
    "h": 268.7
  },
  "luminance": 0.0484
}

Semantic roles & 50–950 ramp

primary
#1F309D
secondary
#C2B356
accent
#D33EEA
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #1F309D

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

Preview Lab → · Contrast checker → · Palette generator →

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