#0F255F#0F255F

#0F255F is a dark, moderate blue. Relative luminance 0.023; OKLCH L 28.8% C 0.107 H 264.7°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#0F255F
RGBrgb(15, 37, 95)
HSLhsl(224, 73%, 22%)
HSVhsv(224, 84%, 37%)
CMYKcmyk(84.2%, 61.1%, 0%, 62.7%)
CIE-LABlab(16.75, 15.49, -36.98)
CIE-LCHlch(16.75, 40.09, 292.73°)
OKLaboklab(28.8% -0.01 -0.1068)
OKLCHoklch(28.8% 0.107 264.7)
XYZxyz(2.9234, 2.2506, 11.1046)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F255F #5F490F
analogous
#0F4D5F #0F255F #210F5F
triadic
#0F255F #5F0F25 #255F0F
tetradic
#0F255F #5F0F4D #5F490F #0F5F21
square
#0F255F #5F0F4D #5F490F #0F5F21
split-complementary
#0F255F #5F210F #4D5F0F
monochromatic
#040A1A #07102A #0F255F #173A94 #204EC9

Accessibility & contrast

On white

14.48
#0F255F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#0F255F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F255F
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F255F#FFFFFF#000000##FFFFFF
##0F255F1.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D61
Deuteranopia (green-blind)
#00265E
Tritanopia (blue-blind)
#00343E
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #0f255f;
/* rgb */ color: rgb(15, 37, 95);
/* oklch */ color: oklch(28.8% 0.107 264.7);
Tailwind
colors: {
  custom: {
    50: '#5c5f8d',
    500: '#0f255f',
    950: '#000000',
  },
}
SCSS
$custom: #0f255f;
$custom-light: #5c5f8d;
$custom-dark: #000000;
JSON
{
  "hex": "#0f255f",
  "rgb": {
    "r": 15,
    "g": 37,
    "b": 95
  },
  "hsl": {
    "h": 223.5,
    "s": 72.727,
    "l": 21.569
  },
  "oklch": {
    "l": 0.28798,
    "c": 0.10723,
    "h": 264.7
  },
  "luminance": 0.02251
}

Semantic roles & 50–950 ramp

primary
#0F255F
secondary
#987C32
accent
#BD38EF
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #0F255F

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

Preview Lab → · Contrast checker → · Palette generator →

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