#0F3166#0F3166

#0F3166 is a dark, moderate blue. Relative luminance 0.033; OKLCH L 32.2% C 0.101 H 259.3°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#0F3166
RGBrgb(15, 49, 102)
HSLhsl(217, 74%, 23%)
HSVhsv(217, 85%, 40%)
CMYKcmyk(85.3%, 52%, 0%, 60%)
CIE-LABlab(21.05, 9.67, -34.62)
CIE-LCHlch(21.05, 35.94, 285.60°)
OKLaboklab(32.24% -0.0188 -0.0996)
OKLCHoklch(32.24% 0.101 259.3)
XYZxyz(3.6927, 3.2570, 13.0018)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F3166 #66440F
analogous
#0F5C66 #0F3166 #190F66
triadic
#0F3166 #660F31 #31660F
tetradic
#0F3166 #660F5C #66440F #0F6619
square
#0F3166 #660F5C #66440F #0F6619
split-complementary
#0F3166 #66190F #5C660F
monochromatic
#040D1B #071731 #0F3166 #174B9B #1F64D1

Accessibility & contrast

On white

12.72
#0F3166 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#0F3166 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F3166
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F3166#FFFFFF#000000##FFFFFF
##0F31661.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#123768
Deuteranopia (green-blind)
#002F65
Tritanopia (blue-blind)
#003E46
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #0f3166;
/* rgb */ color: rgb(15, 49, 102);
/* oklch */ color: oklch(32.2% 0.101 259.3);
Tailwind
colors: {
  custom: {
    50: '#5e6892',
    500: '#0f3166',
    950: '#000000',
  },
}
SCSS
$custom: #0f3166;
$custom-light: #5e6892;
$custom-dark: #000000;
JSON
{
  "hex": "#0f3166",
  "rgb": {
    "r": 15,
    "g": 49,
    "b": 102
  },
  "hsl": {
    "h": 216.552,
    "s": 74.359,
    "l": 22.941
  },
  "oklch": {
    "l": 0.32242,
    "c": 0.10133,
    "h": 259.3
  },
  "luminance": 0.03257
}

Semantic roles & 50–950 ramp

primary
#0F3166
secondary
#9F7432
accent
#A837F1
background
#F5F6F9
surface
#EAEBF1
border
#C6C6CB
text
#05060D
muted
#797A7E

Preview Lab

Preview with #0F3166

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

Preview Lab → · Contrast checker → · Palette generator →

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