#0F214F#0F214F

#0F214F is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.4% C 0.088 H 264.8°. Best body text is #FFFFFF at 15.55:1 contrast (WCAG AA passes).

Color values

HEX#0F214F
RGBrgb(15, 33, 79)
HSLhsl(223, 68%, 18%)
HSVhsv(223, 81%, 31%)
CMYKcmyk(81%, 58.2%, 0%, 69%)
CIE-LABlab(14.14, 11.54, -30.46)
CIE-LCHlch(14.14, 32.57, 290.75°)
OKLaboklab(26.39% -0.0079 -0.0877)
OKLCHoklch(26.39% 0.088 264.8)
XYZxyz(2.1516, 1.7536, 7.6207)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F214F #4F3D0F
analogous
#0F414F #0F214F #1D0F4F
triadic
#0F214F #4F0F21 #214F0F
tetradic
#0F214F #4F0F41 #4F3D0F #0F4F1D
square
#0F214F #4F0F41 #4F3D0F #0F4F1D
split-complementary
#0F214F #4F1D0F #414F0F
monochromatic
#050B1A #050C1C #0F214F #193682 #234CB6

Accessibility & contrast

On white

15.55
#0F214F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#0F214F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F214F
15.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F214F#FFFFFF#000000##FFFFFF
##0F214F1.0015.551.3515.55
#FFFFFF15.551.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022751
Deuteranopia (green-blind)
#00214E
Tritanopia (blue-blind)
#002C34
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #0f214f;
/* rgb */ color: rgb(15, 33, 79);
/* oklch */ color: oklch(26.4% 0.088 264.8);
Tailwind
colors: {
  custom: {
    50: '#585b81',
    500: '#0f214f',
    950: '#000000',
  },
}
SCSS
$custom: #0f214f;
$custom-light: #585b81;
$custom-dark: #000000;
JSON
{
  "hex": "#0f214f",
  "rgb": {
    "r": 15,
    "g": 33,
    "b": 79
  },
  "hsl": {
    "h": 223.125,
    "s": 68.085,
    "l": 18.431
  },
  "oklch": {
    "l": 0.26392,
    "c": 0.08805,
    "h": 264.8
  },
  "luminance": 0.01754
}

Semantic roles & 50–950 ramp

primary
#0F214F
secondary
#897031
accent
#BA3DEB
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04040A
muted
#79797C

Preview Lab

Preview with #0F214F

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

Preview Lab → · Contrast checker → · Palette generator →

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