#0F1A52#0F1A52

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

Color values

HEX#0F1A52
RGBrgb(15, 26, 82)
HSLhsl(230, 69%, 19%)
HSVhsv(230, 82%, 32%)
CMYKcmyk(81.7%, 68.3%, 0%, 67.8%)
CIE-LABlab(12.28, 18.15, -35.53)
CIE-LCHlch(12.28, 39.89, 297.06°)
OKLaboklab(25.09% -0.0019 -0.1027)
OKLCHoklch(25.09% 0.103 268.9)
XYZxyz(2.0889, 1.4493, 8.1507)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1A52 #52470F
analogous
#0F3C52 #0F1A52 #260F52
triadic
#0F1A52 #520F1A #1A520F
tetradic
#0F1A52 #520F3C #52470F #0F5226
square
#0F1A52 #520F3C #52470F #0F5226
split-complementary
#0F1A52 #52260F #3C520F
monochromatic
#05081A #060A1E #0F1A52 #182A86 #223BB9

Accessibility & contrast

On white

16.28
#0F1A52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F1A52
16.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F1A52#FFFFFF#000000##FFFFFF
##0F1A521.0016.281.2916.28
#FFFFFF16.281.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002354
Deuteranopia (green-blind)
#001D51
Tritanopia (blue-blind)
#002933
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #0f1a52;
/* rgb */ color: rgb(15, 26, 82);
/* oklch */ color: oklch(25.1% 0.103 268.9);
Tailwind
colors: {
  custom: {
    50: '#5a5683',
    500: '#0f1a52',
    950: '#000000',
  },
}
SCSS
$custom: #0f1a52;
$custom-light: #5a5683;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1a52",
  "rgb": {
    "r": 15,
    "g": 26,
    "b": 82
  },
  "hsl": {
    "h": 230.149,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.2509,
    "c": 0.10271,
    "h": 268.9
  },
  "luminance": 0.0145
}

Semantic roles & 50–950 ramp

primary
#0F1A52
secondary
#8C7D31
accent
#CF3CEC
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030B
muted
#79787C

Preview Lab

Preview with #0F1A52

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

Preview Lab → · Contrast checker → · Palette generator →

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