#1F276E#1F276E

#1F276E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.5% C 0.122 H 272.3°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#1F276E
RGBrgb(31, 39, 110)
HSLhsl(234, 56%, 28%)
HSVhsv(234, 72%, 43%)
CMYKcmyk(71.8%, 64.5%, 0%, 56.9%)
CIE-LABlab(19.51, 22.37, -42.27)
CIE-LCHlch(19.51, 47.83, 297.89°)
OKLaboklab(31.5% 0.005 -0.1219)
OKLCHoklch(31.5% 0.122 272.3)
XYZxyz(4.1041, 2.8677, 15.0861)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F276E #6E661F
analogous
#1F4E6E #1F276E #3E1F6E
triadic
#1F276E #6E1F27 #276E1F
tetradic
#1F276E #6E1F4E #6E661F #1F6E3E
square
#1F276E #6E1F4E #6E661F #1F6E3E
split-complementary
#1F276E #6E3E1F #4E6E1F
monochromatic
#070818 #12163E #1F276E #2C389E #3F4DC9

Accessibility & contrast

On white

13.35
#1F276E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F276E
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F276E#FFFFFF#000000##FFFFFF
##1F276E1.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003370
Deuteranopia (green-blind)
#002C6D
Tritanopia (blue-blind)
#003946
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1f276e;
/* rgb */ color: rgb(31, 39, 110);
/* oklch */ color: oklch(31.5% 0.122 272.3);
Tailwind
colors: {
  custom: {
    50: '#666198',
    500: '#1f276e',
    950: '#000000',
  },
}
SCSS
$custom: #1f276e;
$custom-light: #666198;
$custom-dark: #000000;
JSON
{
  "hex": "#1f276e",
  "rgb": {
    "r": 31,
    "g": 39,
    "b": 110
  },
  "hsl": {
    "h": 233.924,
    "s": 56.028,
    "l": 27.647
  },
  "oklch": {
    "l": 0.31498,
    "c": 0.12203,
    "h": 272.3
  },
  "luminance": 0.02868
}

Semantic roles & 50–950 ramp

primary
#1F276E
secondary
#A29947
accent
#D048DF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #1F276E

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

Preview Lab → · Contrast checker → · Palette generator →

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