#0F3366#0F3366

#0F3366 is a dark, moderate blue. Relative luminance 0.034; OKLCH L 32.7% C 0.099 H 258.0°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#0F3366
RGBrgb(15, 51, 102)
HSLhsl(215, 74%, 23%)
HSVhsv(215, 85%, 40%)
CMYKcmyk(85.3%, 50%, 0%, 60%)
CIE-LABlab(21.68, 8.22, -33.59)
CIE-LCHlch(21.68, 34.58, 283.75°)
OKLaboklab(32.73% -0.0205 -0.0965)
OKLCHoklch(32.73% 0.099 258)
XYZxyz(3.7782, 3.4281, 13.0303)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F3366 #66420F
analogous
#0F5E66 #0F3366 #160F66
triadic
#0F3366 #660F33 #33660F
tetradic
#0F3366 #660F5E #66420F #0F6616
square
#0F3366 #660F5E #66420F #0F6616
split-complementary
#0F3366 #66160F #5E660F
monochromatic
#040D1B #071831 #0F3366 #174E9B #1F68D1

Accessibility & contrast

On white

12.46
#0F3366 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#0F3366 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F3366
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F3366#FFFFFF#000000##FFFFFF
##0F33661.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173868
Deuteranopia (green-blind)
#003065
Tritanopia (blue-blind)
#003F47
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #0f3366;
/* rgb */ color: rgb(15, 51, 102);
/* oklch */ color: oklch(32.7% 0.099 258.0);
Tailwind
colors: {
  custom: {
    50: '#5e6a92',
    500: '#0f3366',
    950: '#000000',
  },
}
SCSS
$custom: #0f3366;
$custom-light: #5e6a92;
$custom-dark: #000000;
JSON
{
  "hex": "#0f3366",
  "rgb": {
    "r": 15,
    "g": 51,
    "b": 102
  },
  "hsl": {
    "h": 215.172,
    "s": 74.359,
    "l": 22.941
  },
  "oklch": {
    "l": 0.32733,
    "c": 0.09867,
    "h": 258
  },
  "luminance": 0.03429
}

Semantic roles & 50–950 ramp

primary
#0F3366
secondary
#9F7232
accent
#A437F1
background
#F5F6F9
surface
#EAEBF1
border
#C6C6CB
text
#05060D
muted
#797A7E

Preview Lab

Preview with #0F3366

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

Preview Lab → · Contrast checker → · Palette generator →

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