#0F1F4C#0F1F4C

#0F1F4C is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.6% C 0.086 H 265.8°. Best body text is #FFFFFF at 15.90:1 contrast (WCAG AA passes).

Color values

HEX#0F1F4C
RGBrgb(15, 31, 76)
HSLhsl(224, 67%, 18%)
HSVhsv(224, 80%, 30%)
CMYKcmyk(80.3%, 59.2%, 0%, 70.2%)
CIE-LABlab(13.25, 11.76, -29.85)
CIE-LCHlch(13.25, 32.08, 291.50°)
OKLaboklab(25.64% -0.0063 -0.0859)
OKLCHoklch(25.64% 0.086 265.8)
XYZxyz(1.9910, 1.6031, 7.0406)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1F4C #4C3C0F
analogous
#0F3D4C #0F1F4C #1D0F4C
triadic
#0F1F4C #4C0F1F #1F4C0F
tetradic
#0F1F4C #4C0F3D #4C3C0F #0F4C1D
square
#0F1F4C #4C0F3D #4C3C0F #0F4C1D
split-complementary
#0F1F4C #4C1D0F #3D4C0F
monochromatic
#050A1A #050A1A #0F1F4C #19347F #2349B2

Accessibility & contrast

On white

15.90
#0F1F4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#0F1F4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F1F4C
15.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F1F4C#FFFFFF#000000##FFFFFF
##0F1F4C1.0015.901.3215.90
#FFFFFF15.901.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01254E
Deuteranopia (green-blind)
#001F4B
Tritanopia (blue-blind)
#002A32
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #0f1f4c;
/* rgb */ color: rgb(15, 31, 76);
/* oklch */ color: oklch(25.6% 0.086 265.8);
Tailwind
colors: {
  custom: {
    50: '#575a7e',
    500: '#0f1f4c',
    950: '#000000',
  },
}
SCSS
$custom: #0f1f4c;
$custom-light: #575a7e;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1f4c",
  "rgb": {
    "r": 15,
    "g": 31,
    "b": 76
  },
  "hsl": {
    "h": 224.262,
    "s": 67.033,
    "l": 17.843
  },
  "oklch": {
    "l": 0.25641,
    "c": 0.08615,
    "h": 265.8
  },
  "luminance": 0.01603
}

Semantic roles & 50–950 ramp

primary
#0F1F4C
secondary
#867031
accent
#BD3EEA
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #0F1F4C

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

Preview Lab → · Contrast checker → · Palette generator →

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