#0F2957#0F2957

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

Color values

HEX#0F2957
RGBrgb(15, 41, 87)
HSLhsl(218, 71%, 20%)
HSVhsv(218, 83%, 34%)
CMYKcmyk(82.8%, 52.9%, 0%, 65.9%)
CIE-LABlab(17.34, 9.02, -30.68)
CIE-LCHlch(17.34, 31.98, 286.37°)
OKLaboklab(29.04% -0.0142 -0.0882)
OKLCHoklch(29.04% 0.089 260.8)
XYZxyz(2.7096, 2.3752, 9.3306)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F2957 #573D0F
analogous
#0F4D57 #0F2957 #190F57
triadic
#0F2957 #570F29 #29570F
tetradic
#0F2957 #570F4D #573D0F #0F5719
square
#0F2957 #570F4D #573D0F #0F5719
split-complementary
#0F2957 #57190F #4D570F
monochromatic
#050C1A #061023 #0F2957 #18428B #215ABF

Accessibility & contrast

On white

14.24
#0F2957 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#0F2957 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F2957
14.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F2957#FFFFFF#000000##FFFFFF
##0F29571.0014.241.4814.24
#FFFFFF14.241.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E2E59
Deuteranopia (green-blind)
#002856
Tritanopia (blue-blind)
#00343B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #0f2957;
/* rgb */ color: rgb(15, 41, 87);
/* oklch */ color: oklch(29.0% 0.089 260.8);
Tailwind
colors: {
  custom: {
    50: '#5a6287',
    500: '#0f2957',
    950: '#000000',
  },
}
SCSS
$custom: #0f2957;
$custom-light: #5a6287;
$custom-dark: #000000;
JSON
{
  "hex": "#0f2957",
  "rgb": {
    "r": 15,
    "g": 41,
    "b": 87
  },
  "hsl": {
    "h": 218.333,
    "s": 70.588,
    "l": 20
  },
  "oklch": {
    "l": 0.29041,
    "c": 0.08932,
    "h": 260.8
  },
  "luminance": 0.02376
}

Semantic roles & 50–950 ramp

primary
#0F2957
secondary
#916E31
accent
#AD3AED
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04050B
muted
#79797C

Preview Lab

Preview with #0F2957

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

Preview Lab → · Contrast checker → · Palette generator →

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