#0F3168#0F3168

#0F3168 is a dark, moderate blue. Relative luminance 0.033; OKLCH L 32.4% C 0.104 H 259.8°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#0F3168
RGBrgb(15, 49, 104)
HSLhsl(217, 75%, 23%)
HSVhsv(217, 86%, 41%)
CMYKcmyk(85.6%, 52.9%, 0%, 59.2%)
CIE-LABlab(21.20, 10.53, -35.67)
CIE-LCHlch(21.20, 37.19, 286.45°)
OKLaboklab(32.41% -0.0185 -0.1027)
OKLCHoklch(32.41% 0.104 259.8)
XYZxyz(3.7931, 3.2972, 13.5305)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F3168 #68460F
analogous
#0F5D68 #0F3168 #1A0F68
triadic
#0F3168 #680F31 #31680F
tetradic
#0F3168 #680F5D #68460F #0F681A
square
#0F3168 #680F5D #68460F #0F681A
split-complementary
#0F3168 #681A0F #5D680F
monochromatic
#040D1B #071833 #0F3168 #174A9D #1E63D3

Accessibility & contrast

On white

12.65
#0F3168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#0F3168 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F3168
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F3168#FFFFFF#000000##FFFFFF
##0F31681.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F376A
Deuteranopia (green-blind)
#002F67
Tritanopia (blue-blind)
#003E47
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #0f3168;
/* rgb */ color: rgb(15, 49, 104);
/* oklch */ color: oklch(32.4% 0.104 259.8);
Tailwind
colors: {
  custom: {
    50: '#5e6894',
    500: '#0f3168',
    950: '#000000',
  },
}
SCSS
$custom: #0f3168;
$custom-light: #5e6894;
$custom-dark: #000000;
JSON
{
  "hex": "#0f3168",
  "rgb": {
    "r": 15,
    "g": 49,
    "b": 104
  },
  "hsl": {
    "h": 217.079,
    "s": 74.79,
    "l": 23.333
  },
  "oklch": {
    "l": 0.32407,
    "c": 0.10433,
    "h": 259.8
  },
  "luminance": 0.03298
}

Semantic roles & 50–950 ramp

primary
#0F3168
secondary
#A17632
accent
#AA36F1
background
#F5F6F9
surface
#EAEBF1
border
#C6C6CB
text
#05060D
muted
#797A7E

Preview Lab

Preview with #0F3168

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

Preview Lab → · Contrast checker → · Palette generator →

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