#0F2F5C#0F2F5C

#0F2F5C is a dark, moderate blue. Relative luminance 0.029; OKLCH L 30.9% C 0.089 H 257.7°. Best body text is #FFFFFF at 13.28:1 contrast (WCAG AA passes).

Color values

HEX#0F2F5C
RGBrgb(15, 47, 92)
HSLhsl(215, 72%, 21%)
HSVhsv(215, 84%, 36%)
CMYKcmyk(83.7%, 48.9%, 0%, 63.9%)
CIE-LABlab(19.67, 6.78, -30.27)
CIE-LCHlch(19.67, 31.02, 282.62°)
OKLaboklab(30.95% -0.0189 -0.0868)
OKLCHoklch(30.95% 0.089 257.7)
XYZxyz(3.1446, 2.9069, 10.5185)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F2F5C #5C3C0F
analogous
#0F555C #0F2F5C #150F5C
triadic
#0F2F5C #5C0F2F #2F5C0F
tetradic
#0F2F5C #5C0F55 #5C3C0F #0F5C15
square
#0F2F5C #5C0F55 #5C3C0F #0F5C15
split-complementary
#0F2F5C #5C150F #555C0F
monochromatic
#040D1A #061427 #0F2F5C #184A91 #2065C5

Accessibility & contrast

On white

13.28
#0F2F5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#0F2F5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F2F5C
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F2F5C#FFFFFF#000000##FFFFFF
##0F2F5C1.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17335E
Deuteranopia (green-blind)
#062C5B
Tritanopia (blue-blind)
#003A41
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #0f2f5c;
/* rgb */ color: rgb(15, 47, 92);
/* oklch */ color: oklch(30.9% 0.089 257.7);
Tailwind
colors: {
  custom: {
    50: '#5b678a',
    500: '#0f2f5c',
    950: '#000000',
  },
}
SCSS
$custom: #0f2f5c;
$custom-light: #5b678a;
$custom-dark: #000000;
JSON
{
  "hex": "#0f2f5c",
  "rgb": {
    "r": 15,
    "g": 47,
    "b": 92
  },
  "hsl": {
    "h": 215.065,
    "s": 71.963,
    "l": 20.98
  },
  "oklch": {
    "l": 0.30946,
    "c": 0.08887,
    "h": 257.7
  },
  "luminance": 0.02907
}

Semantic roles & 50–950 ramp

primary
#0F2F5C
secondary
#956C31
accent
#A339EF
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#04060C
muted
#797A7D

Preview Lab

Preview with #0F2F5C

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

Preview Lab → · Contrast checker → · Palette generator →

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