#1F306E#1F306E

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

Color values

HEX#1F306E
RGBrgb(31, 48, 110)
HSLhsl(227, 56%, 28%)
HSVhsv(227, 72%, 43%)
CMYKcmyk(71.8%, 56.4%, 0%, 56.9%)
CIE-LABlab(22.05, 15.98, -38.13)
CIE-LCHlch(22.05, 41.35, 292.74°)
OKLaboklab(33.4% -0.0032 -0.1096)
OKLCHoklch(33.4% 0.11 268.3)
XYZxyz(4.4355, 3.5306, 15.1965)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F306E #6E5D1F
analogous
#1F576E #1F306E #361F6E
triadic
#1F306E #6E1F30 #306E1F
tetradic
#1F306E #6E1F57 #6E5D1F #1F6E36
square
#1F306E #6E1F57 #6E5D1F #1F6E36
split-complementary
#1F306E #6E361F #576E1F
monochromatic
#070A18 #121B3E #1F306E #2C459E #3F5CC9

Accessibility & contrast

On white

12.31
#1F306E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F306E
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F306E#FFFFFF#000000##FFFFFF
##1F306E1.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f306e;
/* rgb */ color: rgb(31, 48, 110);
/* oklch */ color: oklch(33.4% 0.110 268.3);
Tailwind
colors: {
  custom: {
    50: '#656798',
    500: '#1f306e',
    950: '#000000',
  },
}
SCSS
$custom: #1f306e;
$custom-light: #656798;
$custom-dark: #000000;
JSON
{
  "hex": "#1f306e",
  "rgb": {
    "r": 31,
    "g": 48,
    "b": 110
  },
  "hsl": {
    "h": 227.089,
    "s": 56.028,
    "l": 27.647
  },
  "oklch": {
    "l": 0.334,
    "c": 0.10969,
    "h": 268.3
  },
  "luminance": 0.03531
}

Semantic roles & 50–950 ramp

primary
#1F306E
secondary
#A28E47
accent
#BF48DF
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #1F306E

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

Preview Lab → · Contrast checker → · Palette generator →

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