#0F1272#0F1272

#0F1272 is a dark, vivid blue. Relative luminance 0.017; OKLCH L 27.5% C 0.156 H 269.0°. Best body text is #FFFFFF at 15.56:1 contrast (WCAG AA passes).

Color values

HEX#0F1272
RGBrgb(15, 18, 114)
HSLhsl(238, 77%, 25%)
HSVhsv(238, 87%, 45%)
CMYKcmyk(86.8%, 84.2%, 0%, 55.3%)
CIE-LABlab(14.11, 35.76, -53.79)
CIE-LCHlch(14.11, 64.59, 303.62°)
OKLaboklab(27.5% -0.0027 -0.1558)
OKLCHoklch(27.5% 0.156 269)
XYZxyz(3.4495, 1.7487, 16.0720)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1272 #726F0F
analogous
#0F4372 #0F1272 #3E0F72
triadic
#0F1272 #720F12 #12720F
tetradic
#0F1272 #720F43 #726F0F #0F723E
square
#0F1272 #720F43 #726F0F #0F723E
split-complementary
#0F1272 #723E0F #43720F
monochromatic
#04041B #08093C #0F1272 #161BA8 #1D23DE

Accessibility & contrast

On white

15.56
#0F1272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#0F1272 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F1272
15.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F1272#FFFFFF#000000##FFFFFF
##0F12721.0015.561.3515.56
#FFFFFF15.561.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002975
Deuteranopia (green-blind)
#001F70
Tritanopia (blue-blind)
#003043
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #0f1272;
/* rgb */ color: rgb(15, 18, 114);
/* oklch */ color: oklch(27.5% 0.156 269.0);
Tailwind
colors: {
  custom: {
    50: '#64529c',
    500: '#0f1272',
    950: '#000000',
  },
}
SCSS
$custom: #0f1272;
$custom-light: #64529c;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1272",
  "rgb": {
    "r": 15,
    "g": 18,
    "b": 114
  },
  "hsl": {
    "h": 238.182,
    "s": 76.744,
    "l": 25.294
  },
  "oklch": {
    "l": 0.27498,
    "c": 0.1558,
    "h": 269
  },
  "luminance": 0.01749
}

Semantic roles & 50–950 ramp

primary
#0F1272
secondary
#AAA633
accent
#EE35F3
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #0F1272

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

Preview Lab → · Contrast checker → · Palette generator →

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