#0F3172#0F3172

#0F3172 is a dark, moderate blue. Relative luminance 0.035; OKLCH L 33.3% C 0.119 H 261.7°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#0F3172
RGBrgb(15, 49, 114)
HSLhsl(219, 77%, 25%)
HSVhsv(219, 87%, 45%)
CMYKcmyk(86.8%, 57%, 0%, 55.3%)
CIE-LABlab(21.99, 14.85, -40.84)
CIE-LCHlch(21.99, 43.45, 289.98°)
OKLaboklab(33.26% -0.0172 -0.1179)
OKLCHoklch(33.26% 0.119 261.7)
XYZxyz(4.3315, 3.5126, 16.3660)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F3172 #72500F
analogous
#0F6272 #0F3172 #1F0F72
triadic
#0F3172 #720F31 #31720F
tetradic
#0F3172 #720F62 #72500F #0F721F
square
#0F3172 #720F62 #72500F #0F721F
split-complementary
#0F3172 #721F0F #62720F
monochromatic
#040C1B #081A3C #0F3172 #1648A8 #1D5FDE

Accessibility & contrast

On white

12.33
#0F3172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F3172
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F3172#FFFFFF#000000##FFFFFF
##0F31721.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003974
Deuteranopia (green-blind)
#003071
Tritanopia (blue-blind)
#00414C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #0f3172;
/* rgb */ color: rgb(15, 49, 114);
/* oklch */ color: oklch(33.3% 0.119 261.7);
Tailwind
colors: {
  custom: {
    50: '#61689b',
    500: '#0f3172',
    950: '#000000',
  },
}
SCSS
$custom: #0f3172;
$custom-light: #61689b;
$custom-dark: #000000;
JSON
{
  "hex": "#0f3172",
  "rgb": {
    "r": 15,
    "g": 49,
    "b": 114
  },
  "hsl": {
    "h": 219.394,
    "s": 76.744,
    "l": 25.294
  },
  "oklch": {
    "l": 0.33262,
    "c": 0.11913,
    "h": 261.7
  },
  "luminance": 0.03513
}

Semantic roles & 50–950 ramp

primary
#0F3172
secondary
#AA8133
accent
#B235F3
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #0F3172

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

Preview Lab → · Contrast checker → · Palette generator →

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