#0F2152#0F2152

#0F2152 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.7% C 0.093 H 265.3°. Best body text is #FFFFFF at 15.45:1 contrast (WCAG AA passes).

Color values

HEX#0F2152
RGBrgb(15, 33, 82)
HSLhsl(224, 69%, 19%)
HSVhsv(224, 82%, 32%)
CMYKcmyk(81.7%, 59.8%, 0%, 67.8%)
CIE-LABlab(14.39, 12.85, -32.09)
CIE-LCHlch(14.39, 34.57, 291.83°)
OKLaboklab(26.67% -0.0076 -0.0925)
OKLCHoklch(26.67% 0.093 265.3)
XYZxyz(2.2633, 1.7982, 8.2088)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F2152 #52400F
analogous
#0F4352 #0F2152 #1F0F52
triadic
#0F2152 #520F21 #21520F
tetradic
#0F2152 #520F43 #52400F #0F521F
square
#0F2152 #520F43 #52400F #0F521F
split-complementary
#0F2152 #521F0F #43520F
monochromatic
#050A1A #060C1E #0F2152 #183686 #224BB9

Accessibility & contrast

On white

15.45
#0F2152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#0F2152 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F2152
15.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F2152#FFFFFF#000000##FFFFFF
##0F21521.0015.451.3615.45
#FFFFFF15.451.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002854
Deuteranopia (green-blind)
#002151
Tritanopia (blue-blind)
#002D35
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #0f2152;
/* rgb */ color: rgb(15, 33, 82);
/* oklch */ color: oklch(26.7% 0.093 265.3);
Tailwind
colors: {
  custom: {
    50: '#595b83',
    500: '#0f2152',
    950: '#000000',
  },
}
SCSS
$custom: #0f2152;
$custom-light: #595b83;
$custom-dark: #000000;
JSON
{
  "hex": "#0f2152",
  "rgb": {
    "r": 15,
    "g": 33,
    "b": 82
  },
  "hsl": {
    "h": 223.881,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26665,
    "c": 0.0928,
    "h": 265.3
  },
  "luminance": 0.01798
}

Semantic roles & 50–950 ramp

primary
#0F2152
secondary
#8C7431
accent
#BD3CEC
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040A
muted
#79797C

Preview Lab

Preview with #0F2152

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

Preview Lab → · Contrast checker → · Palette generator →

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