#0F1C4E#0F1C4E

#0F1C4E is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.1% C 0.094 H 267.9°. Best body text is #FFFFFF at 16.20:1 contrast (WCAG AA passes).

Color values

HEX#0F1C4E
RGBrgb(15, 28, 78)
HSLhsl(228, 68%, 18%)
HSVhsv(228, 81%, 31%)
CMYKcmyk(80.8%, 64.1%, 0%, 69.4%)
CIE-LABlab(12.49, 14.92, -32.45)
CIE-LCHlch(12.49, 35.72, 294.70°)
OKLaboklab(25.13% -0.0035 -0.0936)
OKLCHoklch(25.13% 0.094 267.9)
XYZxyz(1.9869, 1.4819, 7.3876)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1C4E #4E410F
analogous
#0F3B4E #0F1C4E #210F4E
triadic
#0F1C4E #4E0F1C #1C4E0F
tetradic
#0F1C4E #4E0F3B #4E410F #0F4E21
square
#0F1C4E #4E0F3B #4E410F #0F4E21
split-complementary
#0F1C4E #4E210F #3B4E0F
monochromatic
#05091A #050A1B #0F1C4E #192E81 #2341B5

Accessibility & contrast

On white

16.20
#0F1C4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#0F1C4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F1C4E
16.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F1C4E#FFFFFF#000000##FFFFFF
##0F1C4E1.0016.201.3016.20
#FFFFFF16.201.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002450
Deuteranopia (green-blind)
#001E4D
Tritanopia (blue-blind)
#002831
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #0f1c4e;
/* rgb */ color: rgb(15, 28, 78);
/* oklch */ color: oklch(25.1% 0.094 267.9);
Tailwind
colors: {
  custom: {
    50: '#585780',
    500: '#0f1c4e',
    950: '#000000',
  },
}
SCSS
$custom: #0f1c4e;
$custom-light: #585780;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1c4e",
  "rgb": {
    "r": 15,
    "g": 28,
    "b": 78
  },
  "hsl": {
    "h": 227.619,
    "s": 67.742,
    "l": 18.235
  },
  "oklch": {
    "l": 0.25128,
    "c": 0.09369,
    "h": 267.9
  },
  "luminance": 0.01482
}

Semantic roles & 50–950 ramp

primary
#0F1C4E
secondary
#887631
accent
#C73DEB
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #0F1C4E

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

Preview Lab → · Contrast checker → · Palette generator →

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