#0F126A#0F126A

#0F126A is a dark, vivid blue. Relative luminance 0.016; OKLCH L 26.5% C 0.146 H 269.6°. Best body text is #FFFFFF at 15.97:1 contrast (WCAG AA passes).

Color values

HEX#0F126A
RGBrgb(15, 18, 106)
HSLhsl(238, 75%, 24%)
HSVhsv(238, 86%, 42%)
CMYKcmyk(85.8%, 83%, 0%, 58.4%)
CIE-LABlab(13.07, 32.94, -50.28)
CIE-LCHlch(13.07, 60.11, 303.23°)
OKLaboklab(26.48% -0.0011 -0.1456)
OKLCHoklch(26.48% 0.146 269.6)
XYZxyz(3.0139, 1.5744, 13.7779)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F126A #6A670F
analogous
#0F3F6A #0F126A #390F6A
triadic
#0F126A #6A0F12 #126A0F
tetradic
#0F126A #6A0F3F #6A670F #0F6A39
square
#0F126A #6A0F3F #6A670F #0F6A39
split-complementary
#0F126A #6A390F #3F6A0F
monochromatic
#04051B #070934 #0F126A #171BA0 #1E24D5

Accessibility & contrast

On white

15.97
#0F126A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F126A
15.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F126A#FFFFFF#000000##FFFFFF
##0F126A1.0015.971.3215.97
#FFFFFF15.971.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00266C
Deuteranopia (green-blind)
#001D69
Tritanopia (blue-blind)
#002D3E
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #0f126a;
/* rgb */ color: rgb(15, 18, 106);
/* oklch */ color: oklch(26.5% 0.146 269.6);
Tailwind
colors: {
  custom: {
    50: '#625296',
    500: '#0f126a',
    950: '#000000',
  },
}
SCSS
$custom: #0f126a;
$custom-light: #625296;
$custom-dark: #000000;
JSON
{
  "hex": "#0f126a",
  "rgb": {
    "r": 15,
    "g": 18,
    "b": 106
  },
  "hsl": {
    "h": 238.022,
    "s": 75.207,
    "l": 23.725
  },
  "oklch": {
    "l": 0.26475,
    "c": 0.14564,
    "h": 269.6
  },
  "luminance": 0.01575
}

Semantic roles & 50–950 ramp

primary
#0F126A
secondary
#A29F32
accent
#EC36F2
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#06020D
muted
#7A787E

Preview Lab

Preview with #0F126A

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

Preview Lab → · Contrast checker → · Palette generator →

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