#1F276D#1F276D

#1F276D is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.4% C 0.121 H 272.4°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).

Color values

HEX#1F276D
RGBrgb(31, 39, 109)
HSLhsl(234, 56%, 27%)
HSVhsv(234, 72%, 43%)
CMYKcmyk(71.6%, 64.2%, 0%, 57.3%)
CIE-LABlab(19.42, 21.98, -41.77)
CIE-LCHlch(19.42, 47.20, 297.75°)
OKLaboklab(31.4% 0.005 -0.1205)
OKLCHoklch(31.4% 0.121 272.4)
XYZxyz(4.0500, 2.8461, 14.8009)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F276D #6D651F
analogous
#1F4E6D #1F276D #3E1F6D
triadic
#1F276D #6D1F27 #276D1F
tetradic
#1F276D #6D1F4E #6D651F #1F6D3E
square
#1F276D #6D1F4E #6D651F #1F6D3E
split-complementary
#1F276D #6D3E1F #4E6D1F
monochromatic
#070918 #11163D #1F276D #2D389D #3E4CC8

Accessibility & contrast

On white

13.38
#1F276D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F276D
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F276D#FFFFFF#000000##FFFFFF
##1F276D1.0013.381.5713.38
#FFFFFF13.381.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336F
Deuteranopia (green-blind)
#002C6C
Tritanopia (blue-blind)
#003946
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1f276d;
/* rgb */ color: rgb(31, 39, 109);
/* oklch */ color: oklch(31.4% 0.121 272.4);
Tailwind
colors: {
  custom: {
    50: '#666197',
    500: '#1f276d',
    950: '#000000',
  },
}
SCSS
$custom: #1f276d;
$custom-light: #666197;
$custom-dark: #000000;
JSON
{
  "hex": "#1f276d",
  "rgb": {
    "r": 31,
    "g": 39,
    "b": 109
  },
  "hsl": {
    "h": 233.846,
    "s": 55.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31404,
    "c": 0.12056,
    "h": 272.4
  },
  "luminance": 0.02846
}

Semantic roles & 50–950 ramp

primary
#1F276D
secondary
#A19847
accent
#D049DF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #1F276D

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

Preview Lab → · Contrast checker → · Palette generator →

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