#0F2157#0F2157

#0F2157 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.1% C 0.101 H 265.8°. Best body text is #FFFFFF at 15.27:1 contrast (WCAG AA passes).

Color values

HEX#0F2157
RGBrgb(15, 33, 87)
HSLhsl(225, 71%, 20%)
HSVhsv(225, 83%, 34%)
CMYKcmyk(82.8%, 62.1%, 0%, 65.9%)
CIE-LABlab(14.83, 15.03, -34.76)
CIE-LCHlch(14.83, 37.87, 293.38°)
OKLaboklab(27.13% -0.0073 -0.1003)
OKLCHoklch(27.13% 0.101 265.8)
XYZxyz(2.4606, 1.8771, 9.2476)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F2157 #57450F
analogous
#0F4557 #0F2157 #210F57
triadic
#0F2157 #570F21 #21570F
tetradic
#0F2157 #570F45 #57450F #0F5721
square
#0F2157 #570F45 #57450F #0F5721
split-complementary
#0F2157 #57210F #45570F
monochromatic
#050A1A #060D23 #0F2157 #18358B #2149BF

Accessibility & contrast

On white

15.27
#0F2157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#0F2157 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F2157
15.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F2157#FFFFFF#000000##FFFFFF
##0F21571.0015.271.3815.27
#FFFFFF15.271.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002959
Deuteranopia (green-blind)
#002256
Tritanopia (blue-blind)
#002E38
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #0f2157;
/* rgb */ color: rgb(15, 33, 87);
/* oklch */ color: oklch(27.1% 0.101 265.8);
Tailwind
colors: {
  custom: {
    50: '#5a5b87',
    500: '#0f2157',
    950: '#000000',
  },
}
SCSS
$custom: #0f2157;
$custom-light: #5a5b87;
$custom-dark: #000000;
JSON
{
  "hex": "#0f2157",
  "rgb": {
    "r": 15,
    "g": 33,
    "b": 87
  },
  "hsl": {
    "h": 225,
    "s": 70.588,
    "l": 20
  },
  "oklch": {
    "l": 0.27132,
    "c": 0.10059,
    "h": 265.8
  },
  "luminance": 0.01877
}

Semantic roles & 50–950 ramp

primary
#0F2157
secondary
#917931
accent
#C13AED
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040B
muted
#79797C

Preview Lab

Preview with #0F2157

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

Preview Lab → · Contrast checker → · Palette generator →

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