#1F276A#1F276A

#1F276A is a dark, moderate blue. Relative luminance 0.028; OKLCH L 31.1% C 0.116 H 272.5°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#1F276A
RGBrgb(31, 39, 106)
HSLhsl(234, 55%, 27%)
HSVhsv(234, 71%, 42%)
CMYKcmyk(70.8%, 63.2%, 0%, 58.4%)
CIE-LABlab(19.15, 20.81, -40.26)
CIE-LCHlch(19.15, 45.32, 297.34°)
OKLaboklab(31.13% 0.0051 -0.116)
OKLCHoklch(31.13% 0.116 272.5)
XYZxyz(3.8912, 2.7826, 13.9649)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F276A #6A621F
analogous
#1F4D6A #1F276A #3D1F6A
triadic
#1F276A #6A1F27 #276A1F
tetradic
#1F276A #6A1F4D #6A621F #1F6A3D
square
#1F276A #6A1F4D #6A621F #1F6A3D
split-complementary
#1F276A #6A3D1F #4D6A1F
monochromatic
#070918 #11163B #1F276A #2D3899 #3D4CC6

Accessibility & contrast

On white

13.49
#1F276A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#1F276A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F276A
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F276A#FFFFFF#000000##FFFFFF
##1F276A1.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326C
Deuteranopia (green-blind)
#002B69
Tritanopia (blue-blind)
#003844
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1f276a;
/* rgb */ color: rgb(31, 39, 106);
/* oklch */ color: oklch(31.1% 0.116 272.5);
Tailwind
colors: {
  custom: {
    50: '#656195',
    500: '#1f276a',
    950: '#000000',
  },
}
SCSS
$custom: #1f276a;
$custom-light: #656195;
$custom-dark: #000000;
JSON
{
  "hex": "#1f276a",
  "rgb": {
    "r": 31,
    "g": 39,
    "b": 106
  },
  "hsl": {
    "h": 233.6,
    "s": 54.745,
    "l": 26.863
  },
  "oklch": {
    "l": 0.31125,
    "c": 0.11611,
    "h": 272.5
  },
  "luminance": 0.02783
}

Semantic roles & 50–950 ramp

primary
#1F276A
secondary
#9E9547
accent
#CE4ADE
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050D
muted
#7A797E

Preview Lab

Preview with #1F276A

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

Preview Lab → · Contrast checker → · Palette generator →

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