#0F305F#0F305F

#0F305F is a dark, moderate blue. Relative luminance 0.030; OKLCH L 31.4% C 0.092 H 258.0°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#0F305F
RGBrgb(15, 48, 95)
HSLhsl(215, 73%, 22%)
HSVhsv(215, 84%, 37%)
CMYKcmyk(84.2%, 49.5%, 0%, 62.7%)
CIE-LABlab(20.21, 7.35, -31.38)
CIE-LCHlch(20.21, 32.23, 283.19°)
OKLaboklab(31.43% -0.0192 -0.0901)
OKLCHoklch(31.43% 0.092 258)
XYZxyz(3.3188, 3.0413, 11.2364)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F305F #5F3E0F
analogous
#0F585F #0F305F #160F5F
triadic
#0F305F #5F0F30 #305F0F
tetradic
#0F305F #5F0F58 #5F3E0F #0F5F16
square
#0F305F #5F0F58 #5F3E0F #0F5F16
split-complementary
#0F305F #5F160F #585F0F
monochromatic
#040D1A #07152A #0F305F #174B94 #2065C9

Accessibility & contrast

On white

13.06
#0F305F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#0F305F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F305F
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F305F#FFFFFF#000000##FFFFFF
##0F305F1.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173561
Deuteranopia (green-blind)
#042D5E
Tritanopia (blue-blind)
#003B42
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #0f305f;
/* rgb */ color: rgb(15, 48, 95);
/* oklch */ color: oklch(31.4% 0.092 258.0);
Tailwind
colors: {
  custom: {
    50: '#5c678d',
    500: '#0f305f',
    950: '#000000',
  },
}
SCSS
$custom: #0f305f;
$custom-light: #5c678d;
$custom-dark: #000000;
JSON
{
  "hex": "#0f305f",
  "rgb": {
    "r": 15,
    "g": 48,
    "b": 95
  },
  "hsl": {
    "h": 215.25,
    "s": 72.727,
    "l": 21.569
  },
  "oklch": {
    "l": 0.31433,
    "c": 0.09211,
    "h": 258
  },
  "luminance": 0.03042
}

Semantic roles & 50–950 ramp

primary
#0F305F
secondary
#986E32
accent
#A438EF
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #0F305F

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

Preview Lab → · Contrast checker → · Palette generator →

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