#0F255E#0F255E

#0F255E is a dark, moderate blue. Relative luminance 0.022; OKLCH L 28.7% C 0.106 H 264.6°. Best body text is #FFFFFF at 14.52:1 contrast (WCAG AA passes).

Color values

HEX#0F255E
RGBrgb(15, 37, 94)
HSLhsl(223, 72%, 21%)
HSVhsv(223, 84%, 37%)
CMYKcmyk(84%, 60.6%, 0%, 63.1%)
CIE-LABlab(16.66, 15.06, -36.45)
CIE-LCHlch(16.66, 39.44, 292.44°)
OKLaboklab(28.71% -0.01 -0.1052)
OKLCHoklch(28.71% 0.106 264.6)
XYZxyz(2.8782, 2.2325, 10.8667)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F255E #5E480F
analogous
#0F4D5E #0F255E #210F5E
triadic
#0F255E #5E0F25 #255E0F
tetradic
#0F255E #5E0F4D #5E480F #0F5E21
square
#0F255E #5E0F4D #5E480F #0F5E21
split-complementary
#0F255E #5E210F #4D5E0F
monochromatic
#040A1A #071029 #0F255E #173A93 #204FC8

Accessibility & contrast

On white

14.52
#0F255E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F255E
14.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F255E#FFFFFF#000000##FFFFFF
##0F255E1.0014.521.4514.52
#FFFFFF14.521.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D60
Deuteranopia (green-blind)
#00265D
Tritanopia (blue-blind)
#00333D
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #0f255e;
/* rgb */ color: rgb(15, 37, 94);
/* oklch */ color: oklch(28.7% 0.106 264.6);
Tailwind
colors: {
  custom: {
    50: '#5c5f8c',
    500: '#0f255e',
    950: '#000000',
  },
}
SCSS
$custom: #0f255e;
$custom-light: #5c5f8c;
$custom-dark: #000000;
JSON
{
  "hex": "#0f255e",
  "rgb": {
    "r": 15,
    "g": 37,
    "b": 94
  },
  "hsl": {
    "h": 223.291,
    "s": 72.477,
    "l": 21.373
  },
  "oklch": {
    "l": 0.28705,
    "c": 0.10572,
    "h": 264.6
  },
  "luminance": 0.02233
}

Semantic roles & 50–950 ramp

primary
#0F255E
secondary
#977B31
accent
#BC39EF
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #0F255E

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

Preview Lab → · Contrast checker → · Palette generator →

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