#1F286C#1F286C

#1F286C is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.5% C 0.118 H 272.0°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#1F286C
RGBrgb(31, 40, 108)
HSLhsl(233, 55%, 27%)
HSVhsv(233, 71%, 42%)
CMYKcmyk(71.3%, 63%, 0%, 57.6%)
CIE-LABlab(19.60, 20.89, -40.82)
CIE-LCHlch(19.60, 45.85, 297.10°)
OKLaboklab(31.51% 0.0042 -0.1176)
OKLCHoklch(31.51% 0.118 272)
XYZxyz(4.0297, 2.8912, 14.5301)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F286C #6C631F
analogous
#1F4F6C #1F286C #3D1F6C
triadic
#1F286C #6C1F28 #286C1F
tetradic
#1F286C #6C1F4F #6C631F #1F6C3D
square
#1F286C #6C1F4F #6C631F #1F6C3D
split-complementary
#1F286C #6C3D1F #4F6C1F
monochromatic
#070918 #11163C #1F286C #2D3A9C #3E4EC8

Accessibility & contrast

On white

13.30
#1F286C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#1F286C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F286C
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F286C#FFFFFF#000000##FFFFFF
##1F286C1.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336E
Deuteranopia (green-blind)
#002C6B
Tritanopia (blue-blind)
#003945
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1f286c;
/* rgb */ color: rgb(31, 40, 108);
/* oklch */ color: oklch(31.5% 0.118 272.0);
Tailwind
colors: {
  custom: {
    50: '#666197',
    500: '#1f286c',
    950: '#000000',
  },
}
SCSS
$custom: #1f286c;
$custom-light: #666197;
$custom-dark: #000000;
JSON
{
  "hex": "#1f286c",
  "rgb": {
    "r": 31,
    "g": 40,
    "b": 108
  },
  "hsl": {
    "h": 232.987,
    "s": 55.396,
    "l": 27.255
  },
  "oklch": {
    "l": 0.31514,
    "c": 0.11772,
    "h": 272
  },
  "luminance": 0.02892
}

Semantic roles & 50–950 ramp

primary
#1F286C
secondary
#A09647
accent
#CD49DF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050D
muted
#7A797E

Preview Lab

Preview with #1F286C

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

Preview Lab → · Contrast checker → · Palette generator →

#1F286C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva