#0F2457#0F2457

#0F2457 is a dark, moderate blue. Relative luminance 0.021; OKLCH L 27.8% C 0.096 H 264.2°. Best body text is #FFFFFF at 14.89:1 contrast (WCAG AA passes).

Color values

HEX#0F2457
RGBrgb(15, 36, 87)
HSLhsl(223, 71%, 20%)
HSVhsv(223, 83%, 34%)
CMYKcmyk(82.8%, 58.6%, 0%, 65.9%)
CIE-LABlab(15.75, 12.77, -33.26)
CIE-LCHlch(15.75, 35.62, 291.00°)
OKLaboklab(27.83% -0.0098 -0.0959)
OKLCHoklch(27.83% 0.096 264.2)
XYZxyz(2.5476, 2.0511, 9.2766)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F2457 #57420F
analogous
#0F4857 #0F2457 #1E0F57
triadic
#0F2457 #570F24 #24570F
tetradic
#0F2457 #570F48 #57420F #0F571E
square
#0F2457 #570F48 #57420F #0F571E
split-complementary
#0F2457 #571E0F #48570F
monochromatic
#050B1A #060E23 #0F2457 #183A8B #214FBF

Accessibility & contrast

On white

14.89
#0F2457 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F2457
14.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F2457#FFFFFF#000000##FFFFFF
##0F24571.0014.891.4114.89
#FFFFFF14.891.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B59
Deuteranopia (green-blind)
#002456
Tritanopia (blue-blind)
#003039
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #0f2457;
/* rgb */ color: rgb(15, 36, 87);
/* oklch */ color: oklch(27.8% 0.096 264.2);
Tailwind
colors: {
  custom: {
    50: '#5a5e87',
    500: '#0f2457',
    950: '#000000',
  },
}
SCSS
$custom: #0f2457;
$custom-light: #5a5e87;
$custom-dark: #000000;
JSON
{
  "hex": "#0f2457",
  "rgb": {
    "r": 15,
    "g": 36,
    "b": 87
  },
  "hsl": {
    "h": 222.5,
    "s": 70.588,
    "l": 20
  },
  "oklch": {
    "l": 0.27829,
    "c": 0.09636,
    "h": 264.2
  },
  "luminance": 0.02051
}

Semantic roles & 50–950 ramp

primary
#0F2457
secondary
#917531
accent
#B93AED
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040B
muted
#79797C

Preview Lab

Preview with #0F2457

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

Preview Lab → · Contrast checker → · Palette generator →

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