#1F306C#1F306C

#1F306C is a dark, moderate blue. Relative luminance 0.035; OKLCH L 33.2% C 0.107 H 268.2°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#1F306C
RGBrgb(31, 48, 108)
HSLhsl(227, 55%, 27%)
HSVhsv(227, 71%, 42%)
CMYKcmyk(71.3%, 55.6%, 0%, 57.6%)
CIE-LABlab(21.90, 15.19, -37.09)
CIE-LCHlch(21.90, 40.08, 292.27°)
OKLaboklab(33.23% -0.0034 -0.1066)
OKLCHoklch(33.23% 0.107 268.2)
XYZxyz(4.3279, 3.4875, 14.6295)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F306C #6C5B1F
analogous
#1F576C #1F306C #341F6C
triadic
#1F306C #6C1F30 #306C1F
tetradic
#1F306C #6C1F57 #6C5B1F #1F6C34
square
#1F306C #6C1F57 #6C5B1F #1F6C34
split-complementary
#1F306C #6C341F #576C1F
monochromatic
#070B18 #111B3C #1F306C #2D459C #3E5CC8

Accessibility & contrast

On white

12.37
#1F306C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F306C
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F306C#FFFFFF#000000##FFFFFF
##1F306C1.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08386E
Deuteranopia (green-blind)
#00316B
Tritanopia (blue-blind)
#003E49
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f306c;
/* rgb */ color: rgb(31, 48, 108);
/* oklch */ color: oklch(33.2% 0.107 268.2);
Tailwind
colors: {
  custom: {
    50: '#656797',
    500: '#1f306c',
    950: '#000000',
  },
}
SCSS
$custom: #1f306c;
$custom-light: #656797;
$custom-dark: #000000;
JSON
{
  "hex": "#1f306c",
  "rgb": {
    "r": 31,
    "g": 48,
    "b": 108
  },
  "hsl": {
    "h": 226.753,
    "s": 55.396,
    "l": 27.255
  },
  "oklch": {
    "l": 0.33233,
    "c": 0.10663,
    "h": 268.2
  },
  "luminance": 0.03488
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F306C

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

Preview Lab → · Contrast checker → · Palette generator →

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