#1F306D#1F306D

#1F306D is a dark, moderate blue. Relative luminance 0.035; OKLCH L 33.3% C 0.108 H 268.3°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#1F306D
RGBrgb(31, 48, 109)
HSLhsl(227, 56%, 27%)
HSVhsv(227, 72%, 43%)
CMYKcmyk(71.6%, 56%, 0%, 57.3%)
CIE-LABlab(21.98, 15.59, -37.61)
CIE-LCHlch(21.98, 40.71, 292.51°)
OKLaboklab(33.32% -0.0033 -0.1081)
OKLCHoklch(33.32% 0.108 268.3)
XYZxyz(4.3814, 3.5089, 14.9114)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F306D #6D5C1F
analogous
#1F576D #1F306D #351F6D
triadic
#1F306D #6D1F30 #306D1F
tetradic
#1F306D #6D1F57 #6D5C1F #1F6D35
square
#1F306D #6D1F57 #6D5C1F #1F6D35
split-complementary
#1F306D #6D351F #576D1F
monochromatic
#070A18 #111B3D #1F306D #2D459D #3E5CC8

Accessibility & contrast

On white

12.34
#1F306D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#1F306D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F306D
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F306D#FFFFFF#000000##FFFFFF
##1F306D1.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06386F
Deuteranopia (green-blind)
#00316C
Tritanopia (blue-blind)
#003F49
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1f306d;
/* rgb */ color: rgb(31, 48, 109);
/* oklch */ color: oklch(33.3% 0.108 268.3);
Tailwind
colors: {
  custom: {
    50: '#656797',
    500: '#1f306d',
    950: '#000000',
  },
}
SCSS
$custom: #1f306d;
$custom-light: #656797;
$custom-dark: #000000;
JSON
{
  "hex": "#1f306d",
  "rgb": {
    "r": 31,
    "g": 48,
    "b": 109
  },
  "hsl": {
    "h": 226.923,
    "s": 55.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.33316,
    "c": 0.10816,
    "h": 268.3
  },
  "luminance": 0.03509
}

Semantic roles & 50–950 ramp

primary
#1F306D
secondary
#A18D47
accent
#BE49DF
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060D
muted
#7A7A7E

Preview Lab

Preview with #1F306D

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

Preview Lab → · Contrast checker → · Palette generator →

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