#0F3271#0F3271

#0F3271 is a dark, moderate blue. Relative luminance 0.036; OKLCH L 33.4% C 0.116 H 261.1°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#0F3271
RGBrgb(15, 50, 113)
HSLhsl(219, 77%, 25%)
HSVhsv(219, 87%, 44%)
CMYKcmyk(86.7%, 55.8%, 0%, 55.7%)
CIE-LABlab(22.21, 13.69, -39.84)
CIE-LCHlch(22.21, 42.13, 288.97°)
OKLaboklab(33.41% -0.018 -0.1149)
OKLCHoklch(33.41% 0.116 261.1)
XYZxyz(4.3172, 3.5745, 16.0820)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F3271 #714E0F
analogous
#0F6371 #0F3271 #1D0F71
triadic
#0F3271 #710F32 #32710F
tetradic
#0F3271 #710F63 #714E0F #0F711D
square
#0F3271 #710F63 #714E0F #0F711D
split-complementary
#0F3271 #711D0F #63710F
monochromatic
#040C1B #081A3B #0F3271 #164AA7 #1D62DD

Accessibility & contrast

On white

12.24
#0F3271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#0F3271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F3271
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F3271#FFFFFF#000000##FFFFFF
##0F32711.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#023A73
Deuteranopia (green-blind)
#003170
Tritanopia (blue-blind)
#00424C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #0f3271;
/* rgb */ color: rgb(15, 50, 113);
/* oklch */ color: oklch(33.4% 0.116 261.1);
Tailwind
colors: {
  custom: {
    50: '#61699a',
    500: '#0f3271',
    950: '#000000',
  },
}
SCSS
$custom: #0f3271;
$custom-light: #61699a;
$custom-dark: #000000;
JSON
{
  "hex": "#0f3271",
  "rgb": {
    "r": 15,
    "g": 50,
    "b": 113
  },
  "hsl": {
    "h": 218.571,
    "s": 76.563,
    "l": 25.098
  },
  "oklch": {
    "l": 0.33405,
    "c": 0.11633,
    "h": 261.1
  },
  "luminance": 0.03575
}

Semantic roles & 50–950 ramp

primary
#0F3271
secondary
#A97F33
accent
#AF35F3
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #0F3271

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

Preview Lab → · Contrast checker → · Palette generator →

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