#0F1274#0F1274

#0F1274 is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.8% C 0.158 H 268.9°. Best body text is #FFFFFF at 15.45:1 contrast (WCAG AA passes).

Color values

HEX#0F1274
RGBrgb(15, 18, 116)
HSLhsl(238, 77%, 26%)
HSVhsv(238, 87%, 45%)
CMYKcmyk(87.1%, 84.5%, 0%, 54.5%)
CIE-LABlab(14.37, 36.46, -54.65)
CIE-LCHlch(14.37, 65.69, 303.71°)
OKLaboklab(27.76% -0.0032 -0.1583)
OKLCHoklch(27.76% 0.158 268.9)
XYZxyz(3.5646, 1.7947, 16.6781)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1274 #74710F
analogous
#0F4474 #0F1274 #3E0F74
triadic
#0F1274 #740F12 #12740F
tetradic
#0F1274 #740F44 #74710F #0F743E
square
#0F1274 #740F44 #74710F #0F743E
split-complementary
#0F1274 #743E0F #44740F
monochromatic
#04041B #080A3E #0F1274 #161AAA #1D23E0

Accessibility & contrast

On white

15.45
#0F1274 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#0F1274 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F1274
15.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F1274#FFFFFF#000000##FFFFFF
##0F12741.0015.451.3615.45
#FFFFFF15.451.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002977
Deuteranopia (green-blind)
#001F72
Tritanopia (blue-blind)
#003144
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #0f1274;
/* rgb */ color: rgb(15, 18, 116);
/* oklch */ color: oklch(27.8% 0.158 268.9);
Tailwind
colors: {
  custom: {
    50: '#65529d',
    500: '#0f1274',
    950: '#000000',
  },
}
SCSS
$custom: #0f1274;
$custom-light: #65529d;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1274",
  "rgb": {
    "r": 15,
    "g": 18,
    "b": 116
  },
  "hsl": {
    "h": 238.218,
    "s": 77.099,
    "l": 25.686
  },
  "oklch": {
    "l": 0.27755,
    "c": 0.1583,
    "h": 268.9
  },
  "luminance": 0.01795
}

Semantic roles & 50–950 ramp

primary
#0F1274
secondary
#ACA833
accent
#EE34F4
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #0F1274

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

Preview Lab → · Contrast checker → · Palette generator →

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