#0F2162#0F2162

#0F2162 is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.2% C 0.117 H 266.5°. Best body text is #FFFFFF at 14.85:1 contrast (WCAG AA passes).

Color values

HEX#0F2162
RGBrgb(15, 33, 98)
HSLhsl(227, 73%, 22%)
HSVhsv(227, 85%, 38%)
CMYKcmyk(84.7%, 66.3%, 0%, 61.6%)
CIE-LABlab(15.85, 19.73, -40.43)
CIE-LCHlch(15.85, 44.98, 296.02°)
OKLaboklab(28.22% -0.0071 -0.1169)
OKLCHoklch(28.22% 0.117 266.5)
XYZxyz(2.9447, 2.0708, 11.7974)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F2162 #62500F
analogous
#0F4B62 #0F2162 #270F62
triadic
#0F2162 #620F21 #21620F
tetradic
#0F2162 #620F4B #62500F #0F6227
square
#0F2162 #620F4B #62500F #0F6227
split-complementary
#0F2162 #62270F #4B620F
monochromatic
#04091B #070F2D #0F2162 #173397 #1F45CC

Accessibility & contrast

On white

14.85
#0F2162 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#0F2162 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F2162
14.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F2162#FFFFFF#000000##FFFFFF
##0F21621.0014.851.4114.85
#FFFFFF14.851.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B64
Deuteranopia (green-blind)
#002461
Tritanopia (blue-blind)
#00323E
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #0f2162;
/* rgb */ color: rgb(15, 33, 98);
/* oklch */ color: oklch(28.2% 0.117 266.5);
Tailwind
colors: {
  custom: {
    50: '#5e5c8f',
    500: '#0f2162',
    950: '#000000',
  },
}
SCSS
$custom: #0f2162;
$custom-light: #5e5c8f;
$custom-dark: #000000;
JSON
{
  "hex": "#0f2162",
  "rgb": {
    "r": 15,
    "g": 33,
    "b": 98
  },
  "hsl": {
    "h": 226.988,
    "s": 73.451,
    "l": 22.157
  },
  "oklch": {
    "l": 0.28215,
    "c": 0.11716,
    "h": 266.5
  },
  "luminance": 0.02071
}

Semantic roles & 50–950 ramp

primary
#0F2162
secondary
#9B8432
accent
#C838F0
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #0F2162

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

Preview Lab → · Contrast checker → · Palette generator →

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