#0F335F#0F335F

#0F335F is a dark, moderate cyan. Relative luminance 0.033; OKLCH L 32.2% C 0.088 H 255.5°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#0F335F
RGBrgb(15, 51, 95)
HSLhsl(213, 73%, 22%)
HSVhsv(213, 84%, 37%)
CMYKcmyk(84.2%, 46.3%, 0%, 62.7%)
CIE-LABlab(21.19, 5.18, -29.81)
CIE-LCHlch(21.19, 30.26, 279.87°)
OKLaboklab(32.19% -0.022 -0.0854)
OKLCHoklch(32.19% 0.088 255.5)
XYZxyz(3.4456, 3.2950, 11.2787)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F335F #5F3B0F
analogous
#0F5B5F #0F335F #130F5F
triadic
#0F335F #5F0F33 #335F0F
tetradic
#0F335F #5F0F5B #5F3B0F #0F5F13
square
#0F335F #5F0F5B #5F3B0F #0F5F13
split-complementary
#0F335F #5F130F #5B5F0F
monochromatic
#040E1A #07172A #0F335F #174F94 #206CC9

Accessibility & contrast

On white

12.66
#0F335F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#0F335F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F335F
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F335F#FFFFFF#000000##FFFFFF
##0F335F1.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D3761
Deuteranopia (green-blind)
#0D305E
Tritanopia (blue-blind)
#003D44
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #0f335f;
/* rgb */ color: rgb(15, 51, 95);
/* oklch */ color: oklch(32.2% 0.088 255.5);
Tailwind
colors: {
  custom: {
    50: '#5c6a8d',
    500: '#0f335f',
    950: '#000000',
  },
}
SCSS
$custom: #0f335f;
$custom-light: #5c6a8d;
$custom-dark: #000000;
JSON
{
  "hex": "#0f335f",
  "rgb": {
    "r": 15,
    "g": 51,
    "b": 95
  },
  "hsl": {
    "h": 213,
    "s": 72.727,
    "l": 21.569
  },
  "oklch": {
    "l": 0.32192,
    "c": 0.08818,
    "h": 255.5
  },
  "luminance": 0.03295
}

Semantic roles & 50–950 ramp

primary
#0F335F
secondary
#986A32
accent
#9D38EF
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #0F335F

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

Preview Lab → · Contrast checker → · Palette generator →

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