#0F284C#0F284C

#0F284C is a dark, moderate blue. Relative luminance 0.021; OKLCH L 27.9% C 0.073 H 257.8°. Best body text is #FFFFFF at 14.70:1 contrast (WCAG AA passes).

Color values

HEX#0F284C
RGBrgb(15, 40, 76)
HSLhsl(215, 67%, 18%)
HSVhsv(215, 80%, 30%)
CMYKcmyk(80.3%, 47.4%, 0%, 70.2%)
CIE-LABlab(16.21, 4.94, -25.08)
CIE-LCHlch(16.21, 25.56, 281.15°)
OKLaboklab(27.91% -0.0154 -0.0717)
OKLCHoklch(27.91% 0.073 257.8)
XYZxyz(2.2598, 2.1407, 7.1302)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F284C #4C330F
analogous
#0F464C #0F284C #140F4C
triadic
#0F284C #4C0F28 #284C0F
tetradic
#0F284C #4C0F46 #4C330F #0F4C14
square
#0F284C #4C0F46 #4C330F #0F4C14
split-complementary
#0F284C #4C140F #464C0F
monochromatic
#050D1A #050D1A #0F284C #19437F #235EB2

Accessibility & contrast

On white

14.70
#0F284C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#0F284C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F284C
14.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F284C#FFFFFF#000000##FFFFFF
##0F284C1.0014.701.4314.70
#FFFFFF14.701.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#162B4D
Deuteranopia (green-blind)
#0C264B
Tritanopia (blue-blind)
#003036
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #0f284c;
/* rgb */ color: rgb(15, 40, 76);
/* oklch */ color: oklch(27.9% 0.073 257.8);
Tailwind
colors: {
  custom: {
    50: '#57617e',
    500: '#0f284c',
    950: '#000000',
  },
}
SCSS
$custom: #0f284c;
$custom-light: #57617e;
$custom-dark: #000000;
JSON
{
  "hex": "#0f284c",
  "rgb": {
    "r": 15,
    "g": 40,
    "b": 76
  },
  "hsl": {
    "h": 215.41,
    "s": 67.033,
    "l": 17.843
  },
  "oklch": {
    "l": 0.27907,
    "c": 0.07337,
    "h": 257.8
  },
  "luminance": 0.02141
}

Semantic roles & 50–950 ramp

primary
#0F284C
secondary
#866331
accent
#A33EEA
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#03050A
muted
#78797C

Preview Lab

Preview with #0F284C

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

Preview Lab → · Contrast checker → · Palette generator →

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