#0F245C#0F245C

#0F245C is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.3% C 0.104 H 264.8°. Best body text is #FFFFFF at 14.71:1 contrast (WCAG AA passes).

Color values

HEX#0F245C
RGBrgb(15, 36, 92)
HSLhsl(224, 72%, 21%)
HSVhsv(224, 84%, 36%)
CMYKcmyk(83.7%, 60.9%, 0%, 63.9%)
CIE-LABlab(16.18, 14.94, -35.90)
CIE-LCHlch(16.18, 38.89, 292.59°)
OKLaboklab(28.29% -0.0094 -0.1036)
OKLCHoklch(28.29% 0.104 264.8)
XYZxyz(2.7590, 2.1357, 10.3900)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F245C #5C470F
analogous
#0F4A5C #0F245C #200F5C
triadic
#0F245C #5C0F24 #245C0F
tetradic
#0F245C #5C0F4A #5C470F #0F5C20
square
#0F245C #5C0F4A #5C470F #0F5C20
split-complementary
#0F245C #5C200F #4A5C0F
monochromatic
#040A1A #060F27 #0F245C #183991 #204DC5

Accessibility & contrast

On white

14.71
#0F245C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#0F245C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F245C
14.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F245C#FFFFFF#000000##FFFFFF
##0F245C1.0014.711.4314.71
#FFFFFF14.711.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5E
Deuteranopia (green-blind)
#00255B
Tritanopia (blue-blind)
#00323C
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #0f245c;
/* rgb */ color: rgb(15, 36, 92);
/* oklch */ color: oklch(28.3% 0.104 264.8);
Tailwind
colors: {
  custom: {
    50: '#5c5e8b',
    500: '#0f245c',
    950: '#000000',
  },
}
SCSS
$custom: #0f245c;
$custom-light: #5c5e8b;
$custom-dark: #000000;
JSON
{
  "hex": "#0f245c",
  "rgb": {
    "r": 15,
    "g": 36,
    "b": 92
  },
  "hsl": {
    "h": 223.636,
    "s": 71.963,
    "l": 20.98
  },
  "oklch": {
    "l": 0.28289,
    "c": 0.10406,
    "h": 264.8
  },
  "luminance": 0.02136
}

Semantic roles & 50–950 ramp

primary
#0F245C
secondary
#957A31
accent
#BD39EF
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #0F245C

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

Preview Lab → · Contrast checker → · Palette generator →

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