#0F2A5D#0F2A5D

#0F2A5D is a dark, moderate blue. Relative luminance 0.025; OKLCH L 29.8% C 0.097 H 261.6°. Best body text is #FFFFFF at 13.91:1 contrast (WCAG AA passes).

Color values

HEX#0F2A5D
RGBrgb(15, 42, 93)
HSLhsl(219, 72%, 21%)
HSVhsv(219, 84%, 36%)
CMYKcmyk(83.9%, 54.8%, 0%, 63.5%)
CIE-LABlab(18.13, 10.89, -33.41)
CIE-LCHlch(18.13, 35.14, 288.06°)
OKLaboklab(29.79% -0.0142 -0.0962)
OKLCHoklch(29.79% 0.097 261.6)
XYZxyz(3.0000, 2.5475, 10.6874)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F2A5D #5D420F
analogous
#0F515D #0F2A5D #1B0F5D
triadic
#0F2A5D #5D0F2A #2A5D0F
tetradic
#0F2A5D #5D0F51 #5D420F #0F5D1B
square
#0F2A5D #5D0F51 #5D420F #0F5D1B
split-complementary
#0F2A5D #5D1B0F #515D0F
monochromatic
#040C1A #061228 #0F2A5D #174292 #205AC6

Accessibility & contrast

On white

13.91
#0F2A5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#0F2A5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F2A5D
13.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F2A5D#FFFFFF#000000##FFFFFF
##0F2A5D1.0013.911.5113.91
#FFFFFF13.911.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09305F
Deuteranopia (green-blind)
#00295C
Tritanopia (blue-blind)
#00363F
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #0f2a5d;
/* rgb */ color: rgb(15, 42, 93);
/* oklch */ color: oklch(29.8% 0.097 261.6);
Tailwind
colors: {
  custom: {
    50: '#5c638b',
    500: '#0f2a5d',
    950: '#000000',
  },
}
SCSS
$custom: #0f2a5d;
$custom-light: #5c638b;
$custom-dark: #000000;
JSON
{
  "hex": "#0f2a5d",
  "rgb": {
    "r": 15,
    "g": 42,
    "b": 93
  },
  "hsl": {
    "h": 219.231,
    "s": 72.222,
    "l": 21.176
  },
  "oklch": {
    "l": 0.29792,
    "c": 0.09723,
    "h": 261.6
  },
  "luminance": 0.02548
}

Semantic roles & 50–950 ramp

primary
#0F2A5D
secondary
#967331
accent
#B039EF
background
#F5F5F8
surface
#E9EAF0
border
#C5C6CB
text
#04050C
muted
#79797D

Preview Lab

Preview with #0F2A5D

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

Preview Lab → · Contrast checker → · Palette generator →

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