#0F387E#0F387E

#0F387E is a dark, vivid blue. Relative luminance 0.044; OKLCH L 35.9% C 0.127 H 260.6°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#0F387E
RGBrgb(15, 56, 126)
HSLhsl(218, 79%, 28%)
HSVhsv(218, 88%, 49%)
CMYKcmyk(88.1%, 55.6%, 0%, 50.6%)
CIE-LABlab(25.06, 14.93, -43.47)
CIE-LCHlch(25.06, 45.97, 288.96°)
OKLaboklab(35.9% -0.0208 -0.1255)
OKLCHoklch(35.9% 0.127 260.6)
XYZxyz(5.3757, 4.4356, 20.3074)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F387E #7E550F
analogous
#0F6F7E #0F387E #1E0F7E
triadic
#0F387E #7E0F38 #387E0F
tetradic
#0F387E #7E0F6F #7E550F #0F7E1E
square
#0F387E #7E0F6F #7E550F #0F7E1E
split-complementary
#0F387E #7E1E0F #6F7E0F
monochromatic
#030C1B #082047 #0F387E #1650B5 #236AE5

Accessibility & contrast

On white

11.13
#0F387E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#0F387E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F387E
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F387E#FFFFFF#000000##FFFFFF
##0F387E1.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004180
Deuteranopia (green-blind)
#00377D
Tritanopia (blue-blind)
#004955
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #0f387e;
/* rgb */ color: rgb(15, 56, 126);
/* oklch */ color: oklch(35.9% 0.127 260.6);
Tailwind
colors: {
  custom: {
    50: '#646ea4',
    500: '#0f387e',
    950: '#000000',
  },
}
SCSS
$custom: #0f387e;
$custom-light: #646ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#0f387e",
  "rgb": {
    "r": 15,
    "g": 56,
    "b": 126
  },
  "hsl": {
    "h": 217.838,
    "s": 78.723,
    "l": 27.647
  },
  "oklch": {
    "l": 0.35902,
    "c": 0.12719,
    "h": 260.6
  },
  "luminance": 0.04436
}

Semantic roles & 50–950 ramp

primary
#0F387E
secondary
#B58534
accent
#AD33F5
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#06070F
muted
#7A7A7F

Preview Lab

Preview with #0F387E

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

Preview Lab → · Contrast checker → · Palette generator →

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