#0F1857#0F1857

#0F1857 is a dark, moderate blue. Relative luminance 0.014; OKLCH L 25.2% C 0.113 H 269.6°. Best body text is #FFFFFF at 16.30:1 contrast (WCAG AA passes).

Color values

HEX#0F1857
RGBrgb(15, 24, 87)
HSLhsl(233, 71%, 20%)
HSVhsv(233, 83%, 34%)
CMYKcmyk(82.8%, 72.4%, 0%, 65.9%)
CIE-LABlab(12.24, 21.70, -38.99)
CIE-LCHlch(12.24, 44.63, 299.10°)
OKLaboklab(25.22% -0.0008 -0.1128)
OKLCHoklch(25.22% 0.113 269.6)
XYZxyz(2.2433, 1.4427, 9.1752)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1857 #574E0F
analogous
#0F3C57 #0F1857 #2A0F57
triadic
#0F1857 #570F18 #18570F
tetradic
#0F1857 #570F3C #574E0F #0F572A
square
#0F1857 #570F3C #574E0F #0F572A
split-complementary
#0F1857 #572A0F #3C570F
monochromatic
#05071A #060A23 #0F1857 #18268B #2135BF

Accessibility & contrast

On white

16.30
#0F1857 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#0F1857 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F1857
16.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F1857#FFFFFF#000000##FFFFFF
##0F18571.0016.301.2916.30
#FFFFFF16.301.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002359
Deuteranopia (green-blind)
#001D56
Tritanopia (blue-blind)
#002935
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #0f1857;
/* rgb */ color: rgb(15, 24, 87);
/* oklch */ color: oklch(25.2% 0.113 269.6);
Tailwind
colors: {
  custom: {
    50: '#5b5487',
    500: '#0f1857',
    950: '#000000',
  },
}
SCSS
$custom: #0f1857;
$custom-light: #5b5487;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1857",
  "rgb": {
    "r": 15,
    "g": 24,
    "b": 87
  },
  "hsl": {
    "h": 232.5,
    "s": 70.588,
    "l": 20
  },
  "oklch": {
    "l": 0.25216,
    "c": 0.11285,
    "h": 269.6
  },
  "luminance": 0.01443
}

Semantic roles & 50–950 ramp

primary
#0F1857
secondary
#918531
accent
#D73AED
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #0F1857

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

Preview Lab → · Contrast checker → · Palette generator →

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