#0F2257#0F2257

#0F2257 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.4% C 0.099 H 265.3°. Best body text is #FFFFFF at 15.14:1 contrast (WCAG AA passes).

Color values

HEX#0F2257
RGBrgb(15, 34, 87)
HSLhsl(224, 71%, 20%)
HSVhsv(224, 83%, 34%)
CMYKcmyk(82.8%, 60.9%, 0%, 65.9%)
CIE-LABlab(15.13, 14.27, -34.26)
CIE-LCHlch(15.13, 37.12, 292.62°)
OKLaboklab(27.36% -0.0081 -0.0989)
OKLCHoklch(27.36% 0.099 265.3)
XYZxyz(2.4887, 1.9335, 9.2570)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F2257 #57440F
analogous
#0F4657 #0F2257 #200F57
triadic
#0F2257 #570F22 #22570F
tetradic
#0F2257 #570F46 #57440F #0F5720
square
#0F2257 #570F46 #57440F #0F5720
split-complementary
#0F2257 #57200F #46570F
monochromatic
#050A1A #060E23 #0F2257 #18368B #214BBF

Accessibility & contrast

On white

15.14
#0F2257 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#0F2257 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F2257
15.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F2257#FFFFFF#000000##FFFFFF
##0F22571.0015.141.3915.14
#FFFFFF15.141.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002959
Deuteranopia (green-blind)
#002356
Tritanopia (blue-blind)
#002F38
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #0f2257;
/* rgb */ color: rgb(15, 34, 87);
/* oklch */ color: oklch(27.4% 0.099 265.3);
Tailwind
colors: {
  custom: {
    50: '#5a5c87',
    500: '#0f2257',
    950: '#000000',
  },
}
SCSS
$custom: #0f2257;
$custom-light: #5a5c87;
$custom-dark: #000000;
JSON
{
  "hex": "#0f2257",
  "rgb": {
    "r": 15,
    "g": 34,
    "b": 87
  },
  "hsl": {
    "h": 224.167,
    "s": 70.588,
    "l": 20
  },
  "oklch": {
    "l": 0.27362,
    "c": 0.09919,
    "h": 265.3
  },
  "luminance": 0.01934
}

Semantic roles & 50–950 ramp

primary
#0F2257
secondary
#917831
accent
#BE3AED
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040B
muted
#79797C

Preview Lab

Preview with #0F2257

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

Preview Lab → · Contrast checker → · Palette generator →

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