#1F279B#1F279B

#1F279B is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.1% C 0.183 H 270.1°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#1F279B
RGBrgb(31, 39, 155)
HSLhsl(236, 67%, 36%)
HSVhsv(236, 80%, 61%)
CMYKcmyk(80%, 74.8%, 0%, 39.2%)
CIE-LABlab(24.03, 39.09, -63.15)
CIE-LCHlch(24.03, 74.27, 301.75°)
OKLaboklab(36.14% 0.0002 -0.1829)
OKLCHoklch(36.14% 0.183 270.1)
XYZxyz(7.2050, 4.1081, 31.4172)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F279B #9B931F
analogous
#1F659B #1F279B #551F9B
triadic
#1F279B #9B1F27 #279B1F
tetradic
#1F279B #9B1F65 #9B931F #1F9B55
square
#1F279B #9B1F65 #9B931F #1F9B55
split-complementary
#1F279B #9B551F #659B1F
monochromatic
#0B0D35 #151A68 #1F279B #2934CE #5760DD

Accessibility & contrast

On white

11.53
#1F279B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#1F279B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F279B
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F279B#FFFFFF#000000##FFFFFF
##1F279B1.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9E
Deuteranopia (green-blind)
#003399
Tritanopia (blue-blind)
#00495F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1f279b;
/* rgb */ color: rgb(31, 39, 155);
/* oklch */ color: oklch(36.1% 0.183 270.1);
Tailwind
colors: {
  custom: {
    50: '#7262ba',
    500: '#1f279b',
    950: '#000000',
  },
}
SCSS
$custom: #1f279b;
$custom-light: #7262ba;
$custom-dark: #000000;
JSON
{
  "hex": "#1f279b",
  "rgb": {
    "r": 31,
    "g": 39,
    "b": 155
  },
  "hsl": {
    "h": 236.129,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.3614,
    "c": 0.18291,
    "h": 270.1
  },
  "luminance": 0.04109
}

Semantic roles & 50–950 ramp

primary
#1F279B
secondary
#C1BA55
accent
#DF3EEA
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090512
muted
#7B7981

Preview Lab

Preview with #1F279B

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

Preview Lab → · Contrast checker → · Palette generator →

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