#0F1F5A#0F1F5A

#0F1F5A is a dark, moderate blue. Relative luminance 0.018; OKLCH L 27.0% C 0.108 H 267.0°. Best body text is #FFFFFF at 15.40:1 contrast (WCAG AA passes).

Color values

HEX#0F1F5A
RGBrgb(15, 31, 90)
HSLhsl(227, 71%, 21%)
HSVhsv(227, 83%, 35%)
CMYKcmyk(83.3%, 65.6%, 0%, 64.7%)
CIE-LABlab(14.51, 17.82, -37.30)
CIE-LCHlch(14.51, 41.33, 295.54°)
OKLaboklab(26.98% -0.0057 -0.1078)
OKLCHoklch(26.98% 0.108 267)
XYZxyz(2.5318, 1.8194, 9.8886)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1F5A #5A4A0F
analogous
#0F445A #0F1F5A #240F5A
triadic
#0F1F5A #5A0F1F #1F5A0F
tetradic
#0F1F5A #5A0F44 #5A4A0F #0F5A24
square
#0F1F5A #5A0F44 #5A4A0F #0F5A24
split-complementary
#0F1F5A #5A240F #445A0F
monochromatic
#04091A #060D26 #0F1F5A #18318E #2043C3

Accessibility & contrast

On white

15.40
#0F1F5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#0F1F5A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F1F5A
15.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F1F5A#FFFFFF#000000##FFFFFF
##0F1F5A1.0015.401.3615.40
#FFFFFF15.401.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285C
Deuteranopia (green-blind)
#002159
Tritanopia (blue-blind)
#002E39
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #0f1f5a;
/* rgb */ color: rgb(15, 31, 90);
/* oklch */ color: oklch(27.0% 0.108 267.0);
Tailwind
colors: {
  custom: {
    50: '#5c5a89',
    500: '#0f1f5a',
    950: '#000000',
  },
}
SCSS
$custom: #0f1f5a;
$custom-light: #5c5a89;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1f5a",
  "rgb": {
    "r": 15,
    "g": 31,
    "b": 90
  },
  "hsl": {
    "h": 227.2,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.2698,
    "c": 0.10796,
    "h": 267
  },
  "luminance": 0.0182
}

Semantic roles & 50–950 ramp

primary
#0F1F5A
secondary
#947F31
accent
#C83AEE
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #0F1F5A

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

Preview Lab → · Contrast checker → · Palette generator →

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