#0F245F#0F245F

#0F245F is a dark, moderate blue. Relative luminance 0.022; OKLCH L 28.6% C 0.109 H 265.1°. Best body text is #FFFFFF at 14.60:1 contrast (WCAG AA passes).

Color values

HEX#0F245F
RGBrgb(15, 36, 95)
HSLhsl(224, 73%, 22%)
HSVhsv(224, 84%, 37%)
CMYKcmyk(84.2%, 62.1%, 0%, 62.7%)
CIE-LABlab(16.45, 16.24, -37.46)
CIE-LCHlch(16.45, 40.83, 293.43°)
OKLaboklab(28.57% -0.0092 -0.1082)
OKLCHoklch(28.57% 0.109 265.1)
XYZxyz(2.8927, 2.1892, 11.0944)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F245F #5F4A0F
analogous
#0F4C5F #0F245F #220F5F
triadic
#0F245F #5F0F24 #245F0F
tetradic
#0F245F #5F0F4C #5F4A0F #0F5F22
square
#0F245F #5F0F4C #5F4A0F #0F5F22
split-complementary
#0F245F #5F220F #4C5F0F
monochromatic
#040A1A #07102A #0F245F #173894 #204CC9

Accessibility & contrast

On white

14.60
#0F245F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#0F245F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F245F
14.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F245F#FFFFFF#000000##FFFFFF
##0F245F1.0014.601.4414.60
#FFFFFF14.601.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D61
Deuteranopia (green-blind)
#00255E
Tritanopia (blue-blind)
#00333D
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #0f245f;
/* rgb */ color: rgb(15, 36, 95);
/* oklch */ color: oklch(28.6% 0.109 265.1);
Tailwind
colors: {
  custom: {
    50: '#5d5e8d',
    500: '#0f245f',
    950: '#000000',
  },
}
SCSS
$custom: #0f245f;
$custom-light: #5d5e8d;
$custom-dark: #000000;
JSON
{
  "hex": "#0f245f",
  "rgb": {
    "r": 15,
    "g": 36,
    "b": 95
  },
  "hsl": {
    "h": 224.25,
    "s": 72.727,
    "l": 21.569
  },
  "oklch": {
    "l": 0.28573,
    "c": 0.10861,
    "h": 265.1
  },
  "luminance": 0.0219
}

Semantic roles & 50–950 ramp

primary
#0F245F
secondary
#987D32
accent
#BF38EF
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #0F245F

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

Preview Lab → · Contrast checker → · Palette generator →

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