#1F306F#1F306F

#1F306F is a dark, moderate blue. Relative luminance 0.036; OKLCH L 33.5% C 0.111 H 268.4°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#1F306F
RGBrgb(31, 48, 111)
HSLhsl(227, 56%, 28%)
HSVhsv(227, 72%, 44%)
CMYKcmyk(72.1%, 56.8%, 0%, 56.5%)
CIE-LABlab(22.13, 16.38, -38.65)
CIE-LCHlch(22.13, 41.98, 292.97°)
OKLaboklab(33.48% -0.0031 -0.1112)
OKLCHoklch(33.48% 0.111 268.4)
XYZxyz(4.4903, 3.5525, 15.4849)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F306F #6F5E1F
analogous
#1F586F #1F306F #361F6F
triadic
#1F306F #6F1F30 #306F1F
tetradic
#1F306F #6F1F58 #6F5E1F #1F6F36
square
#1F306F #6F1F58 #6F5E1F #1F6F36
split-complementary
#1F306F #6F361F #586F1F
monochromatic
#070A18 #121B3F #1F306F #2C459F #3F5CC9

Accessibility & contrast

On white

12.28
#1F306F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#1F306F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F306F
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F306F#FFFFFF#000000##FFFFFF
##1F306F1.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#023971
Deuteranopia (green-blind)
#00316E
Tritanopia (blue-blind)
#003F4A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1f306f;
/* rgb */ color: rgb(31, 48, 111);
/* oklch */ color: oklch(33.5% 0.111 268.4);
Tailwind
colors: {
  custom: {
    50: '#666799',
    500: '#1f306f',
    950: '#000000',
  },
}
SCSS
$custom: #1f306f;
$custom-light: #666799;
$custom-dark: #000000;
JSON
{
  "hex": "#1f306f",
  "rgb": {
    "r": 31,
    "g": 48,
    "b": 111
  },
  "hsl": {
    "h": 227.25,
    "s": 56.338,
    "l": 27.843
  },
  "oklch": {
    "l": 0.33484,
    "c": 0.1112,
    "h": 268.4
  },
  "luminance": 0.03553
}

Semantic roles & 50–950 ramp

primary
#1F306F
secondary
#A38F47
accent
#BF48E0
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #1F306F

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

Preview Lab → · Contrast checker → · Palette generator →

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