#0F418E#0F418E

#0F418E is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.3% C 0.138 H 259.6°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#0F418E
RGBrgb(15, 65, 142)
HSLhsl(216, 81%, 31%)
HSVhsv(216, 89%, 56%)
CMYKcmyk(89.4%, 54.2%, 0%, 44.3%)
CIE-LABlab(28.99, 15.34, -47.06)
CIE-LCHlch(28.99, 49.49, 288.05°)
OKLaboklab(39.29% -0.025 -0.1358)
OKLCHoklch(39.29% 0.138 259.6)
XYZxyz(6.9680, 5.8343, 26.3448)
Luminance0.0583 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F418E #8E5C0F
analogous
#0F808E #0F418E #1C0F8E
triadic
#0F418E #8E0F41 #418E0F
tetradic
#0F418E #8E0F80 #8E5C0F #0F8E1C
square
#0F418E #8E0F80 #8E5C0F #0F8E1C
split-complementary
#0F418E #8E1C0F #808E0F
monochromatic
#030E1F #092857 #0F418E #155AC5 #2E78E9

Accessibility & contrast

On white

9.69
#0F418E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#0F418E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F418E
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F418E#FFFFFF#000000##FFFFFF
##0F418E1.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#034A91
Deuteranopia (green-blind)
#003F8C
Tritanopia (blue-blind)
#005461
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #0f418e;
/* rgb */ color: rgb(15, 65, 142);
/* oklch */ color: oklch(39.3% 0.138 259.6);
Tailwind
colors: {
  custom: {
    50: '#6874b0',
    500: '#0f418e',
    950: '#000000',
  },
}
SCSS
$custom: #0f418e;
$custom-light: #6874b0;
$custom-dark: #000000;
JSON
{
  "hex": "#0f418e",
  "rgb": {
    "r": 15,
    "g": 65,
    "b": 142
  },
  "hsl": {
    "h": 216.378,
    "s": 80.892,
    "l": 30.784
  },
  "oklch": {
    "l": 0.3929,
    "c": 0.1381,
    "h": 259.6
  },
  "luminance": 0.05835
}

Semantic roles & 50–950 ramp

primary
#0F418E
secondary
#C38B36
accent
#A931F7
background
#F6F7FA
surface
#ECEDF5
border
#C7C8CF
text
#070810
muted
#7A7B7F

Preview Lab

Preview with #0F418E

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

Preview Lab → · Contrast checker → · Palette generator →

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