#1F306A#1F306A

#1F306A is a dark, moderate blue. Relative luminance 0.034; OKLCH L 33.1% C 0.104 H 268.0°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#1F306A
RGBrgb(31, 48, 106)
HSLhsl(226, 55%, 27%)
HSVhsv(226, 71%, 42%)
CMYKcmyk(70.8%, 54.7%, 0%, 58.4%)
CIE-LABlab(21.75, 14.39, -36.05)
CIE-LCHlch(21.75, 38.81, 291.76°)
OKLaboklab(33.07% -0.0036 -0.1035)
OKLCHoklch(33.07% 0.104 268)
XYZxyz(4.2227, 3.4454, 14.0754)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F306A #6A591F
analogous
#1F566A #1F306A #341F6A
triadic
#1F306A #6A1F30 #306A1F
tetradic
#1F306A #6A1F56 #6A591F #1F6A34
square
#1F306A #6A1F56 #6A591F #1F6A34
split-complementary
#1F306A #6A341F #566A1F
monochromatic
#070B18 #111B3B #1F306A #2D4599 #3D5CC6

Accessibility & contrast

On white

12.43
#1F306A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#1F306A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F306A
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F306A#FFFFFF#000000##FFFFFF
##1F306A1.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C386C
Deuteranopia (green-blind)
#003169
Tritanopia (blue-blind)
#003E48
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f306a;
/* rgb */ color: rgb(31, 48, 106);
/* oklch */ color: oklch(33.1% 0.104 268.0);
Tailwind
colors: {
  custom: {
    50: '#656795',
    500: '#1f306a',
    950: '#000000',
  },
}
SCSS
$custom: #1f306a;
$custom-light: #656795;
$custom-dark: #000000;
JSON
{
  "hex": "#1f306a",
  "rgb": {
    "r": 31,
    "g": 48,
    "b": 106
  },
  "hsl": {
    "h": 226.4,
    "s": 54.745,
    "l": 26.863
  },
  "oklch": {
    "l": 0.33068,
    "c": 0.10356,
    "h": 268
  },
  "luminance": 0.03446
}

Semantic roles & 50–950 ramp

primary
#1F306A
secondary
#9E8A47
accent
#BC4ADE
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060D
muted
#7A7A7E

Preview Lab

Preview with #1F306A

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

Preview Lab → · Contrast checker → · Palette generator →

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