#1F276C#1F276C

#1F276C is a dark, moderate blue. Relative luminance 0.028; OKLCH L 31.3% C 0.119 H 272.4°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#1F276C
RGBrgb(31, 39, 108)
HSLhsl(234, 55%, 27%)
HSVhsv(234, 71%, 42%)
CMYKcmyk(71.3%, 63.9%, 0%, 57.6%)
CIE-LABlab(19.33, 21.59, -41.27)
CIE-LCHlch(19.33, 46.58, 297.62°)
OKLaboklab(31.31% 0.0051 -0.119)
OKLCHoklch(31.31% 0.119 272.4)
XYZxyz(3.9965, 2.8247, 14.5191)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F276C #6C641F
analogous
#1F4E6C #1F276C #3D1F6C
triadic
#1F276C #6C1F27 #276C1F
tetradic
#1F276C #6C1F4E #6C641F #1F6C3D
square
#1F276C #6C1F4E #6C641F #1F6C3D
split-complementary
#1F276C #6C3D1F #4E6C1F
monochromatic
#070918 #11163C #1F276C #2D389C #3E4CC8

Accessibility & contrast

On white

13.42
#1F276C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#1F276C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F276C
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F276C#FFFFFF#000000##FFFFFF
##1F276C1.0013.421.5713.42
#FFFFFF13.421.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f276c;
/* rgb */ color: rgb(31, 39, 108);
/* oklch */ color: oklch(31.3% 0.119 272.4);
Tailwind
colors: {
  custom: {
    50: '#666197',
    500: '#1f276c',
    950: '#000000',
  },
}
SCSS
$custom: #1f276c;
$custom-light: #666197;
$custom-dark: #000000;
JSON
{
  "hex": "#1f276c",
  "rgb": {
    "r": 31,
    "g": 39,
    "b": 108
  },
  "hsl": {
    "h": 233.766,
    "s": 55.396,
    "l": 27.255
  },
  "oklch": {
    "l": 0.3131,
    "c": 0.11909,
    "h": 272.4
  },
  "luminance": 0.02825
}

Semantic roles & 50–950 ramp

primary
#1F276C
secondary
#A09747
accent
#CF49DF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050D
muted
#7A797E

Preview Lab

Preview with #1F276C

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

Preview Lab → · Contrast checker → · Palette generator →

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