#1F276B#1F276B

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

Color values

HEX#1F276B
RGBrgb(31, 39, 107)
HSLhsl(234, 55%, 27%)
HSVhsv(234, 71%, 42%)
CMYKcmyk(71%, 63.6%, 0%, 58%)
CIE-LABlab(19.24, 21.20, -40.76)
CIE-LCHlch(19.24, 45.95, 297.48°)
OKLaboklab(31.22% 0.0051 -0.1175)
OKLCHoklch(31.22% 0.118 272.5)
XYZxyz(3.9435, 2.8035, 14.2404)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F276B #6B631F
analogous
#1F4D6B #1F276B #3D1F6B
triadic
#1F276B #6B1F27 #276B1F
tetradic
#1F276B #6B1F4D #6B631F #1F6B3D
square
#1F276B #6B1F4D #6B631F #1F6B3D
split-complementary
#1F276B #6B3D1F #4D6B1F
monochromatic
#070918 #11163C #1F276B #2D389A #3D4CC7

Accessibility & contrast

On white

13.45
#1F276B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F276B
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F276B#FFFFFF#000000##FFFFFF
##1F276B1.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326D
Deuteranopia (green-blind)
#002B6A
Tritanopia (blue-blind)
#003845
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1f276b;
/* rgb */ color: rgb(31, 39, 107);
/* oklch */ color: oklch(31.2% 0.118 272.5);
Tailwind
colors: {
  custom: {
    50: '#656196',
    500: '#1f276b',
    950: '#000000',
  },
}
SCSS
$custom: #1f276b;
$custom-light: #656196;
$custom-dark: #000000;
JSON
{
  "hex": "#1f276b",
  "rgb": {
    "r": 31,
    "g": 39,
    "b": 107
  },
  "hsl": {
    "h": 233.684,
    "s": 55.072,
    "l": 27.059
  },
  "oklch": {
    "l": 0.31217,
    "c": 0.1176,
    "h": 272.5
  },
  "luminance": 0.02804
}

Semantic roles & 50–950 ramp

primary
#1F276B
secondary
#9F9647
accent
#CF49DE
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050D
muted
#7A797E

Preview Lab

Preview with #1F276B

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

Preview Lab → · Contrast checker → · Palette generator →

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