#0F3371#0F3371

#0F3371 is a dark, moderate blue. Relative luminance 0.037; OKLCH L 33.6% C 0.115 H 260.6°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#0F3371
RGBrgb(15, 51, 113)
HSLhsl(218, 77%, 25%)
HSVhsv(218, 87%, 44%)
CMYKcmyk(86.7%, 54.9%, 0%, 55.7%)
CIE-LABlab(22.52, 12.97, -39.34)
CIE-LCHlch(22.52, 41.43, 288.25°)
OKLaboklab(33.64% -0.0188 -0.1134)
OKLCHoklch(33.64% 0.115 260.6)
XYZxyz(4.3604, 3.6609, 16.0964)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F3371 #714D0F
analogous
#0F6471 #0F3371 #1C0F71
triadic
#0F3371 #710F33 #33710F
tetradic
#0F3371 #710F64 #714D0F #0F711C
square
#0F3371 #710F64 #714D0F #0F711C
split-complementary
#0F3371 #711C0F #64710F
monochromatic
#040C1B #081B3B #0F3371 #164BA7 #1D64DD

Accessibility & contrast

On white

12.12
#0F3371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#0F3371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F3371
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F3371#FFFFFF#000000##FFFFFF
##0F33711.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#063A73
Deuteranopia (green-blind)
#003270
Tritanopia (blue-blind)
#00424C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #0f3371;
/* rgb */ color: rgb(15, 51, 113);
/* oklch */ color: oklch(33.6% 0.115 260.6);
Tailwind
colors: {
  custom: {
    50: '#616a9a',
    500: '#0f3371',
    950: '#000000',
  },
}
SCSS
$custom: #0f3371;
$custom-light: #616a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#0f3371",
  "rgb": {
    "r": 15,
    "g": 51,
    "b": 113
  },
  "hsl": {
    "h": 217.959,
    "s": 76.563,
    "l": 25.098
  },
  "oklch": {
    "l": 0.33638,
    "c": 0.11499,
    "h": 260.6
  },
  "luminance": 0.03661
}

Semantic roles & 50–950 ramp

primary
#0F3371
secondary
#A97E33
accent
#AD35F3
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #0F3371

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

Preview Lab → · Contrast checker → · Palette generator →

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