#0F3171#0F3171

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

Color values

HEX#0F3171
RGBrgb(15, 49, 113)
HSLhsl(219, 77%, 25%)
HSVhsv(219, 87%, 44%)
CMYKcmyk(86.7%, 56.6%, 0%, 55.7%)
CIE-LABlab(21.91, 14.42, -40.33)
CIE-LCHlch(21.91, 42.83, 289.67°)
OKLaboklab(33.17% -0.0173 -0.1164)
OKLCHoklch(33.17% 0.118 261.5)
XYZxyz(4.2749, 3.4899, 16.0679)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F3171 #714F0F
analogous
#0F6271 #0F3171 #1E0F71
triadic
#0F3171 #710F31 #31710F
tetradic
#0F3171 #710F62 #714F0F #0F711E
square
#0F3171 #710F62 #714F0F #0F711E
split-complementary
#0F3171 #711E0F #62710F
monochromatic
#040C1B #081A3B #0F3171 #1648A7 #1D60DD

Accessibility & contrast

On white

12.37
#0F3171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#0F3171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##0F3171#FFFFFF#000000##FFFFFF
##0F31711.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)
#003973
Deuteranopia (green-blind)
#003070
Tritanopia (blue-blind)
#00414C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #0f3171;
/* rgb */ color: rgb(15, 49, 113);
/* oklch */ color: oklch(33.2% 0.118 261.5);
Tailwind
colors: {
  custom: {
    50: '#61689a',
    500: '#0f3171',
    950: '#000000',
  },
}
SCSS
$custom: #0f3171;
$custom-light: #61689a;
$custom-dark: #000000;
JSON
{
  "hex": "#0f3171",
  "rgb": {
    "r": 15,
    "g": 49,
    "b": 113
  },
  "hsl": {
    "h": 219.184,
    "s": 76.563,
    "l": 25.098
  },
  "oklch": {
    "l": 0.33175,
    "c": 0.11767,
    "h": 261.5
  },
  "luminance": 0.0349
}

Semantic roles & 50–950 ramp

primary
#0F3171
secondary
#A98033
accent
#B135F3
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #0F3171

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

Preview Lab → · Contrast checker → · Palette generator →

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