#0F1F5C#0F1F5C

#0F1F5C is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.2% C 0.111 H 267.1°. Best body text is #FFFFFF at 15.32:1 contrast (WCAG AA passes).

Color values

HEX#0F1F5C
RGBrgb(15, 31, 92)
HSLhsl(228, 72%, 21%)
HSVhsv(228, 84%, 36%)
CMYKcmyk(83.7%, 66.3%, 0%, 63.9%)
CIE-LABlab(14.70, 18.67, -38.32)
CIE-LCHlch(14.70, 42.63, 295.98°)
OKLaboklab(27.18% -0.0057 -0.1108)
OKLCHoklch(27.18% 0.111 267.1)
XYZxyz(2.6181, 1.8539, 10.3430)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1F5C #5C4C0F
analogous
#0F455C #0F1F5C #250F5C
triadic
#0F1F5C #5C0F1F #1F5C0F
tetradic
#0F1F5C #5C0F45 #5C4C0F #0F5C25
square
#0F1F5C #5C0F45 #5C4C0F #0F5C25
split-complementary
#0F1F5C #5C250F #455C0F
monochromatic
#04091A #060D27 #0F1F5C #183191 #2042C5

Accessibility & contrast

On white

15.32
#0F1F5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#0F1F5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F1F5C
15.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F1F5C#FFFFFF#000000##FFFFFF
##0F1F5C1.0015.321.3715.32
#FFFFFF15.321.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295E
Deuteranopia (green-blind)
#00225B
Tritanopia (blue-blind)
#002F3A
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #0f1f5c;
/* rgb */ color: rgb(15, 31, 92);
/* oklch */ color: oklch(27.2% 0.111 267.1);
Tailwind
colors: {
  custom: {
    50: '#5c5a8b',
    500: '#0f1f5c',
    950: '#000000',
  },
}
SCSS
$custom: #0f1f5c;
$custom-light: #5c5a8b;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1f5c",
  "rgb": {
    "r": 15,
    "g": 31,
    "b": 92
  },
  "hsl": {
    "h": 227.532,
    "s": 71.963,
    "l": 20.98
  },
  "oklch": {
    "l": 0.27182,
    "c": 0.11097,
    "h": 267.1
  },
  "luminance": 0.01854
}

Semantic roles & 50–950 ramp

primary
#0F1F5C
secondary
#958131
accent
#C939EF
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #0F1F5C

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

Preview Lab → · Contrast checker → · Palette generator →

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