#0F3771#0F3771

#0F3771 is a dark, moderate blue. Relative luminance 0.040; OKLCH L 34.6% C 0.110 H 258.5°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#0F3771
RGBrgb(15, 55, 113)
HSLhsl(216, 77%, 25%)
HSVhsv(216, 87%, 44%)
CMYKcmyk(86.7%, 51.3%, 0%, 55.7%)
CIE-LABlab(23.76, 10.09, -37.34)
CIE-LCHlch(23.76, 38.68, 285.12°)
OKLaboklab(34.59% -0.0219 -0.1074)
OKLCHoklch(34.59% 0.11 258.5)
XYZxyz(4.5427, 4.0256, 16.1572)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F3771 #71490F
analogous
#0F6871 #0F3771 #180F71
triadic
#0F3771 #710F37 #37710F
tetradic
#0F3771 #710F68 #71490F #0F7118
square
#0F3771 #710F68 #71490F #0F7118
split-complementary
#0F3771 #71180F #68710F
monochromatic
#040D1B #081D3B #0F3771 #1651A7 #1D6CDD

Accessibility & contrast

On white

11.63
#0F3771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#0F3771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F3771
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F3771#FFFFFF#000000##FFFFFF
##0F37711.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#143D73
Deuteranopia (green-blind)
#003470
Tritanopia (blue-blind)
#00454E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #0f3771;
/* rgb */ color: rgb(15, 55, 113);
/* oklch */ color: oklch(34.6% 0.110 258.5);
Tailwind
colors: {
  custom: {
    50: '#606d9a',
    500: '#0f3771',
    950: '#000000',
  },
}
SCSS
$custom: #0f3771;
$custom-light: #606d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#0f3771",
  "rgb": {
    "r": 15,
    "g": 55,
    "b": 113
  },
  "hsl": {
    "h": 215.51,
    "s": 76.563,
    "l": 25.098
  },
  "oklch": {
    "l": 0.34586,
    "c": 0.10966,
    "h": 258.5
  },
  "luminance": 0.04026
}

Semantic roles & 50–950 ramp

primary
#0F3771
secondary
#A97933
accent
#A535F3
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06070E
muted
#7A7A7E

Preview Lab

Preview with #0F3771

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

Preview Lab → · Contrast checker → · Palette generator →

#0F3771 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva