#1B2F7E#1B2F7E

#1B2F7E is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.4% C 0.136 H 267.6°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#1B2F7E
RGBrgb(27, 47, 126)
HSLhsl(228, 65%, 30%)
HSVhsv(228, 79%, 49%)
CMYKcmyk(78.6%, 62.7%, 0%, 50.6%)
CIE-LABlab(22.90, 22.53, -46.97)
CIE-LCHlch(22.90, 52.09, 295.63°)
OKLaboklab(34.4% -0.0057 -0.1357)
OKLCHoklch(34.4% 0.136 267.6)
XYZxyz(5.2331, 3.7718, 20.1869)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2F7E #7E6A1B
analogous
#1B607E #1B2F7E #391B7E
triadic
#1B2F7E #7E1B2F #2F7E1B
tetradic
#1B2F7E #7E1B60 #7E6A1B #1B7E39
square
#1B2F7E #7E1B60 #7E6A1B #1B7E39
split-complementary
#1B2F7E #7E391B #607E1B
monochromatic
#050919 #101C4C #1B2F7E #2642B0 #3E5CD6

Accessibility & contrast

On white

11.97
#1B2F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#1B2F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2F7E
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2F7E#FFFFFF#000000##FFFFFF
##1B2F7E1.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B81
Deuteranopia (green-blind)
#00327C
Tritanopia (blue-blind)
#004351
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1b2f7e;
/* rgb */ color: rgb(27, 47, 126);
/* oklch */ color: oklch(34.4% 0.136 267.6);
Tailwind
colors: {
  custom: {
    50: '#6867a4',
    500: '#1b2f7e',
    950: '#000000',
  },
}
SCSS
$custom: #1b2f7e;
$custom-light: #6867a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2f7e",
  "rgb": {
    "r": 27,
    "g": 47,
    "b": 126
  },
  "hsl": {
    "h": 227.879,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.34398,
    "c": 0.13583,
    "h": 267.6
  },
  "luminance": 0.03772
}

Semantic roles & 50–950 ramp

primary
#1B2F7E
secondary
#B29B43
accent
#C640E8
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1B2F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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