#252F77#252F77

#252F77 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.3% C 0.123 H 272.2°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#252F77
RGBrgb(37, 47, 119)
HSLhsl(233, 53%, 31%)
HSVhsv(233, 69%, 47%)
CMYKcmyk(68.9%, 60.5%, 0%, 53.3%)
CIE-LABlab(22.85, 21.21, -42.58)
CIE-LCHlch(22.85, 47.57, 296.48°)
OKLaboklab(34.32% 0.0048 -0.1226)
OKLCHoklch(34.32% 0.123 272.2)
XYZxyz(5.1081, 3.7578, 17.9053)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252F77 #776D25
analogous
#255877 #252F77 #442577
triadic
#252F77 #77252F #2F7725
tetradic
#252F77 #772558 #776D25 #257744
square
#252F77 #772558 #776D25 #257744
split-complementary
#252F77 #774425 #587725
monochromatic
#080A1A #161D48 #252F77 #3441A6 #4E5DC8

Accessibility & contrast

On white

11.99
#252F77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#252F77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252F77
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252F77#FFFFFF#000000##FFFFFF
##252F771.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A79
Deuteranopia (green-blind)
#003376
Tritanopia (blue-blind)
#00414E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #252f77;
/* rgb */ color: rgb(37, 47, 119);
/* oklch */ color: oklch(34.3% 0.123 272.2);
Tailwind
colors: {
  custom: {
    50: '#6a679f',
    500: '#252f77',
    950: '#000000',
  },
}
SCSS
$custom: #252f77;
$custom-light: #6a679f;
$custom-dark: #000000;
JSON
{
  "hex": "#252f77",
  "rgb": {
    "r": 37,
    "g": 47,
    "b": 119
  },
  "hsl": {
    "h": 232.683,
    "s": 52.564,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34324,
    "c": 0.12268,
    "h": 272.2
  },
  "luminance": 0.03758
}

Semantic roles & 50–950 ramp

primary
#252F77
secondary
#A99E4E
accent
#CA4CDC
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #252F77

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

Preview Lab → · Contrast checker → · Palette generator →

#252F77 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva