#0F285A#0F285A

#0F285A is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.0% C 0.095 H 262.2°. Best body text is #FFFFFF at 14.27:1 contrast (WCAG AA passes).

Color values

HEX#0F285A
RGBrgb(15, 40, 90)
HSLhsl(220, 71%, 21%)
HSVhsv(220, 83%, 35%)
CMYKcmyk(83.3%, 55.6%, 0%, 64.7%)
CIE-LABlab(17.26, 11.07, -32.83)
CIE-LCHlch(17.26, 34.64, 288.64°)
OKLaboklab(29.05% -0.0129 -0.0945)
OKLCHoklch(29.05% 0.095 262.2)
XYZxyz(2.8006, 2.3570, 9.9782)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F285A #5A410F
analogous
#0F4D5A #0F285A #1B0F5A
triadic
#0F285A #5A0F28 #285A0F
tetradic
#0F285A #5A0F4D #5A410F #0F5A1B
square
#0F285A #5A0F4D #5A410F #0F5A1B
split-complementary
#0F285A #5A1B0F #4D5A0F
monochromatic
#040C1A #061126 #0F285A #183F8E #2057C3

Accessibility & contrast

On white

14.27
#0F285A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#0F285A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F285A
14.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F285A#FFFFFF#000000##FFFFFF
##0F285A1.0014.271.4714.27
#FFFFFF14.271.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#072E5C
Deuteranopia (green-blind)
#002759
Tritanopia (blue-blind)
#00343C
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #0f285a;
/* rgb */ color: rgb(15, 40, 90);
/* oklch */ color: oklch(29.0% 0.095 262.2);
Tailwind
colors: {
  custom: {
    50: '#5b6189',
    500: '#0f285a',
    950: '#000000',
  },
}
SCSS
$custom: #0f285a;
$custom-light: #5b6189;
$custom-dark: #000000;
JSON
{
  "hex": "#0f285a",
  "rgb": {
    "r": 15,
    "g": 40,
    "b": 90
  },
  "hsl": {
    "h": 220,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.2905,
    "c": 0.09538,
    "h": 262.2
  },
  "luminance": 0.02357
}

Semantic roles & 50–950 ramp

primary
#0F285A
secondary
#947331
accent
#B23AEE
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#04050B
muted
#79797C

Preview Lab

Preview with #0F285A

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

Preview Lab → · Contrast checker → · Palette generator →

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